{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import csv\n",
    "import wfdb\n",
    "import heartpy as hp\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "import scipy.signal as ssignal\n",
    "from scipy.fft import fft, fftfreq\n",
    "# from scipy.signal import resample, butter, filtfilt, medfilt\n",
    "# from scipy.ndimage import gaussian_filter1d"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {},
   "outputs": [],
   "source": [
    "# def funcBPFilter(ppg_signal, order, f1, f2, fs):\n",
    "#     fc = [f1, f2]\n",
    "#     b, a = butter(order, fc, btype='bandpass', analog=False, output='ba', fs=fs)\n",
    "#     signalBP = filtfilt(b, a, ppg_signal)\n",
    "#     return signalBP\n",
    "\n",
    "# def funcMedianFilter(ppg_signal, window_size):\n",
    "#     return medfilt(ppg_signal, kernel_size=window_size)\n",
    "\n",
    "def cheby(ppg, fs, order=4, rs=20, btype='low'):\n",
    "    nyquist = 0.5 * fs\n",
    "    cutoff = 10 / nyquist\n",
    "    rs, order = 20, 4\n",
    "    b, a = ssignal.cheby2(N=order, rs=rs, Wn=cutoff, btype='low')\n",
    "    return ssignal.filtfilt(b, a, ppg)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ID</th>\n",
       "      <th>Age_group</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0001</td>\n",
       "      <td>2.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0002</td>\n",
       "      <td>2.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0003</td>\n",
       "      <td>7.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0004</td>\n",
       "      <td>4.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0005</td>\n",
       "      <td>2.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1091</th>\n",
       "      <td>1117</td>\n",
       "      <td>3.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1092</th>\n",
       "      <td>1118</td>\n",
       "      <td>8.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1093</th>\n",
       "      <td>1119</td>\n",
       "      <td>2.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1094</th>\n",
       "      <td>1120</td>\n",
       "      <td>3.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1095</th>\n",
       "      <td>1121</td>\n",
       "      <td>3.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1096 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        ID  Age_group\n",
       "0     0001        2.0\n",
       "1     0002        2.0\n",
       "2     0003        7.0\n",
       "3     0004        4.0\n",
       "4     0005        2.0\n",
       "...    ...        ...\n",
       "1091  1117        3.0\n",
       "1092  1118        8.0\n",
       "1093  1119        2.0\n",
       "1094  1120        3.0\n",
       "1095  1121        3.0\n",
       "\n",
       "[1096 rows x 2 columns]"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "subjects = pd.read_csv(r\"D:\\Proga\\AML\\datasets\\Autonomic_Aging\\subject-info.csv\",dtype = {\"ID\":str})\n",
    "subjects.dropna(inplace=True)\n",
    "subjects = subjects.reset_index()\n",
    "subjects = subjects[[\"ID\",\"Age_group\"]]\n",
    "subjects"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1096\n",
      "1096\n",
      "1121\n",
      "3.0\n"
     ]
    }
   ],
   "source": [
    "ids = subjects[\"ID\"].values\n",
    "age_groups = subjects[\"Age_group\"].values\n",
    "\n",
    "print(len(ids))\n",
    "print(len(age_groups))\n",
    "print(ids[len(ids)-1])\n",
    "print(age_groups[len(age_groups)-1])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(1, '0001', 2.0, 477260055.25333333, 112119563.74333322, 4.256706317069592)\n",
      "Process end: 0001\n",
      "(2, '0002', 2.0, 382848592.4266667, 41892162.25999998, 9.13890741782558)\n",
      "Process end: 0002\n",
      "(3, '0003', 7.0, 32090860.770000003, 68832027.56666665, 0.466219896528817)\n",
      "Process end: 0003\n",
      "(4, '0004', 4.0, 399697747.3066667, 36498139.24166665, 10.951181501613858)\n",
      "Process end: 0004\n",
      "(5, '0005', 2.0, 266344434.32000005, 182272637.1200001, 1.4612420082815332)\n",
      "Process end: 0005\n",
      "(6, '0006', 4.0, 205284991.44, 103120544.54666676, 1.9907283494522197)\n",
      "Process end: 0006\n",
      "(7, '0007', 2.0, 298598949.84000003, 56096617.53916664, 5.322940365014314)\n",
      "Process end: 0007\n",
      "(8, '0008', 3.0, 302806605.28, 154206106.23999998, 1.9636486042175552)\n",
      "Process end: 0008\n",
      "(9, '0009', 3.0, 467300010.4533332, 206813466.81333327, 2.2595240902523583)\n",
      "Process end: 0009\n",
      "(10, '0010', 2.0, 751392581.1200001, 62078493.85333336, 12.103911265876393)\n",
      "Process end: 0010\n",
      "(11, '0011', 2.0, 62038628.98666667, 19545715.773333333, 3.1740269686775755)\n",
      "Process end: 0011\n",
      "(12, '0012', 3.0, 376893956.6933334, 29149208.579999994, 12.929817825377592)\n",
      "Process end: 0012\n",
      "(13, '0013', 1.0, 498537397.52000004, 170630572.38666666, 2.9217354812024094)\n",
      "Process end: 0013\n",
      "(14, '0014', 9.0, 141409605.85333335, 19802568.444999997, 7.140972962476402)\n",
      "Process end: 0014\n",
      "(15, '0015', 4.0, 696039263.3599999, 181568310.36000004, 3.8334842791671377)\n",
      "Process end: 0015\n",
      "(16, '0016', 3.0, 1247157766.8266668, 283890113012.0539, 0.00439310039224125)\n",
      "Process end: 0016\n",
      "(17, '0017', 3.0, 740800287.2533333, 161245086.5533333, 4.594250299889335)\n",
      "Process end: 0017\n",
      "(18, '0018', 2.0, 298251626.1333334, 250296154.05333346, 1.191594921869161)\n",
      "Process end: 0018\n",
      "(19, '0019', 2.0, 554623698.24, 100536268.49666664, 5.5166529107691025)\n",
      "Process end: 0019\n",
      "(20, '0020', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0020\n",
      "(21, '0021', 8.0, 903918583.4666669, 168909186211.8402, 0.005351506355213876)\n",
      "Process end: 0021\n",
      "(22, '0022', 7.0, 654478587.7333333, 56953224.16166662, 11.491510750568567)\n",
      "Process end: 0022\n",
      "(23, '0023', 3.0, 751397871.7866666, 551125761.3333335, 1.3633873146644726)\n",
      "Process end: 0023\n",
      "(24, '0024', 4.0, 6744645763.626667, 1262102970.0266664, 5.343974242833897)\n",
      "Process end: 0024\n",
      "(25, '0025', 2.0, 348356792.8266667, 38528698.25374998, 9.04148877629836)\n",
      "Process end: 0025\n",
      "(26, '0026', 2.0, 325827495.8933332, 93098635.07999995, 3.499809590262506)\n",
      "Process end: 0026\n",
      "(27, '0027', 1.0, 293114150.1066667, 22859245.99, 12.822564236584721)\n",
      "Process end: 0027\n",
      "(28, '0028', 2.0, 323517790.61333334, 119035791.16, 2.717819468083194)\n",
      "Process end: 0028\n",
      "(29, '0029', 3.0, 221703535.50666666, 99121992.67999998, 2.236673512228535)\n",
      "Process end: 0029\n",
      "(30, '0030', 3.0, 380196435.62666667, 59706373.09333329, 6.367769735943293)\n",
      "Process end: 0030\n",
      "(31, '0031', 2.0, 704179539.1999999, 105587794185.3867, 0.006669137703204884)\n",
      "Process end: 0031\n",
      "(32, '0032', 1.0, 225017456.00000003, 32227533.80833335, 6.982149404861235)\n",
      "Process end: 0032\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "c:\\Users\\toha2\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\numpy\\ma\\core.py:5317: RuntimeWarning: Mean of empty slice.\n",
      "  result = super().mean(axis=axis, dtype=dtype, **kwargs)[()]\n",
      "c:\\Users\\toha2\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\numpy\\core\\fromnumeric.py:3747: RuntimeWarning: Degrees of freedom <= 0 for slice\n",
      "  return _methods._var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(33, '0033', 2.0, 735.4112106323244, 833.1166779836014, 0.8827229487377994)\n",
      "Process end: 0033\n",
      "(34, '0035', 12.0, 37525775.010000005, 36097168.555, 1.039576690144638)\n",
      "Process end: 0035\n",
      "(35, '0036', 3.0, 192706940.48000002, 300910956.0000001, 0.6404118448914168)\n",
      "Process end: 0036\n",
      "(36, '0037', 5.0, 848925279.8933334, 22333637.283333324, 38.01106237750407)\n",
      "Process end: 0037\n",
      "(37, '0038', 7.0, 820073406.7733334, 45043289.91666668, 18.2063390194306)\n",
      "Process end: 0038\n",
      "(38, '0039', 3.0, 277408238.82666665, 181174877.25999993, 1.5311628357201226)\n",
      "Process end: 0039\n",
      "(39, '0040', 2.0, 2317280063.5733333, 475325715.22666675, 4.875141380617921)\n",
      "Process end: 0040\n",
      "(40, '0041', 2.0, 801372833.7066668, 110155320382.93335, 0.007274935345118615)\n",
      "Process end: 0041\n",
      "(41, '0042', 2.0, 655585021.2266667, 362721929.5733333, 1.8074038754641213)\n",
      "Process end: 0042\n",
      "(42, '0043', 2.0, 82607961.77333334, 23791838.040000007, 3.4721134884345117)\n",
      "Process end: 0043\n",
      "(43, '0044', 1.0, 606463476.8000001, 157707564.93333337, 3.845493886462366)\n",
      "Process end: 0044\n",
      "(44, '0045', 7.0, 189292904.21333337, 106526822.12, 1.7769506350250388)\n",
      "Process end: 0045\n",
      "(45, '0046', 2.0, 707441659.7866669, 89655320.28666669, 7.890682421574883)\n",
      "Process end: 0046\n",
      "(46, '0047', 5.0, 234877447.25333336, 87584651.32666665, 2.6817192703925383)\n",
      "Process end: 0047\n",
      "(47, '0048', 3.0, 1377058932.4, 191052189.78666666, 7.207763145440292)\n",
      "Process end: 0048\n",
      "(48, '0049', 10.0, 126915933.69333336, 22170503.046666663, 5.724540098444685)\n",
      "Process end: 0049\n",
      "(49, '0050', 3.0, 373304683.41333336, 130426401.17333336, 2.862186490273706)\n",
      "Process end: 0050\n",
      "(50, '0052', 4.0, 693768483.2, 255339652.0666667, 2.717041703412613)\n",
      "Process end: 0052\n",
      "(51, '0053', 10.0, 594765828.0533335, 103812137.94666675, 5.72925131701741)\n",
      "Process end: 0053\n",
      "(52, '0055', 2.0, 311050386.96000004, 132737457.5599999, 2.3433504956157476)\n",
      "Process end: 0055\n",
      "(53, '0056', 2.0, 847051366.8266666, 441838220.69333297, 1.9171075003368263)\n",
      "Process end: 0056\n",
      "(54, '0057', 11.0, 972005571.4133334, 1035531080.4266671, 0.938654174448188)\n",
      "Process end: 0057\n",
      "(55, '0058', 2.0, 168970632.08, 40738122.530000016, 4.1477275236620965)\n",
      "Process end: 0058\n",
      "(56, '0059', 2.0, 367201821.6533333, 30707437.293333318, 11.958074460777421)\n",
      "Process end: 0059\n",
      "(57, '0060', 1.0, 180055484.21333337, 45695953.1433333, 3.9402938734762363)\n",
      "Process end: 0060\n",
      "(58, '0061', 7.0, 130862727.52000003, 67231925.08666669, 1.9464373116091611)\n",
      "Process end: 0061\n",
      "(59, '0062', 3.0, 411939713.44000006, 117291820.94666667, 3.512092404357092)\n",
      "Process end: 0062\n",
      "(60, '0063', 2.0, 882657269.3333335, 522578461.83333355, 1.6890425721656324)\n",
      "Process end: 0063\n",
      "(61, '0064', 2.0, 708461713.6000001, 126388630.42999999, 5.605422823157972)\n",
      "Process end: 0064\n",
      "(62, '0065', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0065\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "C:\\Users\\toha2\\AppData\\Local\\Temp\\ipykernel_3744\\488822791.py:12: RuntimeWarning: overflow encountered in cast\n",
      "  signal = record.p_signal[:, channel_index].astype(np.float32)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(63, '0066', 2.0, 510837888.8533334, 24638170.668333326, 20.733596488553328)\n",
      "Process end: 0066\n",
      "(64, '0067', 2.0, 1027914804.2666667, 247383363.17333338, 4.1551492836098305)\n",
      "Process end: 0067\n",
      "(65, '0068', 8.0, 224299023.02666664, 59724812.45999994, 3.7555416884211823)\n",
      "Process end: 0068\n",
      "(66, '0069', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0069\n",
      "(67, '0070', 6.0, 881159064.3199999, 325331517.0666666, 2.708495851446922)\n",
      "Process end: 0070\n",
      "(68, '0071', 2.0, 480881856.32000005, 16289464.44083332, 29.52103539478917)\n",
      "Process end: 0071\n",
      "(69, '0072', 3.0, 597216397.44, 54128723.92333333, 11.033262086242482)\n",
      "Process end: 0072\n",
      "(70, '0073', 3.0, 8344076178.7733345, 1965487296.2399998, 4.245296418214277)\n",
      "Process end: 0073\n",
      "(71, '0074', 3.0, 116530441.02666666, 17359365.539999988, 6.712828343763694)\n",
      "Process end: 0074\n",
      "(72, '0075', 4.0, 455120135.9466666, 1248032998.4, 0.3646699538635104)\n",
      "Process end: 0075\n",
      "(73, '0076', 8.0, 292668253.6533334, 28647038.874166675, 10.216352724583196)\n",
      "Process end: 0076\n",
      "(74, '0077', 5.0, 133388372.69333336, 88600216.14666668, 1.5055084343420273)\n",
      "Process end: 0077\n",
      "(75, '0078', 1.0, 304523282.8266667, 82754676.79333337, 3.679831698058167)\n",
      "Process end: 0078\n",
      "(76, '0079', 3.0, 8300328936.106668, 2369873504.4266663, 3.502435434044288)\n",
      "Process end: 0079\n",
      "(77, '0080', 3.0, 509957915.6266666, 151615940.53333336, 3.3634848277351836)\n",
      "Process end: 0080\n",
      "(78, '0081', 3.0, 159583206.97333333, 25226333.27833333, 6.326056395615685)\n",
      "Process end: 0081\n",
      "(79, '0082', 9.0, 125126621.22666669, 82947434.58333327, 1.508505017125732)\n",
      "Process end: 0082\n",
      "(80, '0083', 4.0, 146582529.86666667, 18533146.79500001, 7.909208915682503)\n",
      "Process end: 0083\n",
      "(81, '0084', 2.0, 109249232.56000002, 25102747.802499995, 4.352082625357844)\n",
      "Process end: 0084\n",
      "(82, '0085', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0085\n",
      "(83, '0086', 3.0, 2628680940.3733325, 251721360.90666664, 10.442820310938952)\n",
      "Process end: 0086\n",
      "(84, '0087', 8.0, 135164717.50666666, 62408882.07000004, 2.1657929612496676)\n",
      "Process end: 0087\n",
      "(85, '0088', 2.0, 270788.94416666665, 385005.21575520816, 0.7033383785087165)\n",
      "Process end: 0088\n",
      "(86, '0089', 2.0, 558820169.3866668, 83658513.49666664, 6.679776463024685)\n",
      "Process end: 0089\n",
      "(87, '0090', 2.0, 811986216.96, 224037611.46666664, 3.624329913376224)\n",
      "Process end: 0090\n",
      "(88, '0091', 12.0, 176165742.05333337, 33916238.76166667, 5.194141463953901)\n",
      "Process end: 0091\n",
      "(89, '0092', 7.0, 119447113.39666668, 47291984.9633333, 2.5257369401871608)\n",
      "Process end: 0092\n",
      "(90, '0093', 4.0, 148835920.29333335, 119388461.33333331, 1.246652470692143)\n",
      "Process end: 0093\n",
      "(91, '0094', 2.0, 399276077.0133333, 52217964.22333331, 7.646335565776788)\n",
      "Process end: 0094\n",
      "(92, '0095', 2.0, 622000016.0, 279775147.73333323, 2.223213966784703)\n",
      "Process end: 0095\n",
      "(93, '0096', 7.0, 510760537.6, 183738410978.13358, 0.0027798245063781727)\n",
      "Process end: 0096\n",
      "(94, '0097', 2.0, 309127.86046875, 301119.0275390624, 1.0265969008838165)\n",
      "Process end: 0097\n",
      "(95, '0098', 1.0, 311866454.6933333, 28101219.975000013, 11.09796852132336)\n",
      "Process end: 0098\n",
      "(96, '0099', 3.0, 402447765.76, 64262379.14583334, 6.262571836108156)\n",
      "Process end: 0099\n",
      "(97, '0100', 3.0, 1926334484.0533333, 152982894.81666663, 12.591829213075329)\n",
      "Process end: 0100\n",
      "(98, '0101', 10.0, 389762105.65333337, 16564392.200625, 23.53011815541454)\n",
      "Process end: 0101\n",
      "(99, '0102', 1.0, 947283052.1600001, 79393550.9533333, 11.931486131874907)\n",
      "Process end: 0102\n",
      "(100, '0103', 1.0, 556877194.6666667, 191952728.93999988, 2.9011163203662194)\n",
      "Process end: 0103\n",
      "(101, '0104', 8.0, 252515553.60000002, 334825276.64666665, 0.7541711191251366)\n",
      "Process end: 0104\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "c:\\Users\\toha2\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\heartpy\\analysis.py:677: UserWarning: \n",
      "The maximal number of iterations maxit (set to 20 by the program)\n",
      "allowed for finding a smoothing spline with fp=s has been reached: s\n",
      "too small.\n",
      "There is an approximation returned but the corresponding weighted sum\n",
      "of squared residuals does not satisfy the condition abs(fp-s)/s < tol.\n",
      "  interp = UnivariateSpline(x, rrlist, k=3)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(102, '0105', 2.0, 530066525.97333324, 1068349579.1733334, 0.4961545699147349)\n",
      "Process end: 0105\n",
      "(103, '0106', 3.0, 360873048.42666674, 72031908.63000001, 5.009905405676971)\n",
      "Process end: 0106\n",
      "(104, '0107', 1.0, 566652146.3466667, 218239312.2933334, 2.5964714624147773)\n",
      "Process end: 0107\n",
      "(105, '0108', 13.0, 1599656248.3200004, 563639952.7199999, 2.838081723271068)\n",
      "Process end: 0108\n",
      "(106, '0109', 2.0, 8577659003.7333355, 1915997731.626667, 4.476862817812926)\n",
      "Process end: 0109\n",
      "(107, '0110', 2.0, 300918039.5733333, 83302095.80333328, 3.6123705732898532)\n",
      "Process end: 0110\n",
      "(108, '0111', 7.0, 86430929.92666668, 180876453.36000013, 0.4778451164930925)\n",
      "Process end: 0111\n",
      "(109, '0112', 4.0, 73894712.58666667, 23048823.538333327, 3.206007997057625)\n",
      "Process end: 0112\n",
      "(110, '0113', 3.0, 591953050.24, 51288422.53999999, 11.541650550440192)\n",
      "Process end: 0113\n",
      "(111, '0114', 7.0, 571495564.5866668, 107027330070.61339, 0.005339716166044798)\n",
      "Process end: 0114\n",
      "(112, '0115', 2.0, 153579183.92000002, 15384100.924999995, 9.982980784429563)\n",
      "Process end: 0115\n",
      "(113, '0116', 2.0, 400137725.81333333, 39907550.80999999, 10.026616960744864)\n",
      "Process end: 0116\n",
      "(114, '0117', 1.0, 390988772.37333345, 250152676.6933332, 1.5630005544679972)\n",
      "Process end: 0117\n",
      "(115, '0118', 2.0, 256706540.42666668, 230830845.87333322, 1.1120980796800986)\n",
      "Process end: 0118\n",
      "(116, '0119', 2.0, 51074883.666666664, 50684455.17000001, 1.0077031211119292)\n",
      "Process end: 0119\n",
      "(117, '0120', 6.0, 664665436.9066669, 670566915.0400001, 0.9911992703472685)\n",
      "Process end: 0120\n",
      "(118, '0121', 2.0, 222625154.42666674, 232824136.52000007, 0.9561944811831946)\n",
      "Process end: 0121\n",
      "(119, '0122', 4.0, 1433771582.08, 700993279.4133329, 2.0453428359255246)\n",
      "Process end: 0122\n",
      "(120, '0123', 9.0, 399742330.5333333, 89340512.37333328, 4.4743680096987)\n",
      "Process end: 0123\n",
      "(121, '0124', 6.0, 689974809.1733333, 276965151.7066666, 2.4911971954655314)\n",
      "Process end: 0124\n",
      "(122, '0125', 2.0, 169172377.86666662, 59394774.43999995, 2.848270398561122)\n",
      "Process end: 0125\n",
      "(123, '0126', 6.0, 955610279.9466667, 175968762.6666667, 5.430567706819964)\n",
      "Process end: 0126\n",
      "(124, '0127', 2.0, 481142564.47999996, 98524580.97333334, 4.883477399515416)\n",
      "Process end: 0127\n",
      "(125, '0128', 2.0, 236446953.9733333, 271127587.9733334, 0.8720874026164718)\n",
      "Process end: 0128\n",
      "(126, '0129', 5.0, 595367830.72, 31061102.51416666, 19.167633552236552)\n",
      "Process end: 0129\n",
      "(127, '0130', 5.0, 950535577.3866668, 416244905.4399998, 2.283596904043509)\n",
      "Process end: 0130\n",
      "(128, '0131', 4.0, 280328461.3866667, 110679606.37333333, 2.5327923596067996)\n",
      "Process end: 0131\n",
      "(129, '0132', 3.0, 683883952.96, 233384817.373333, 2.9302846717146473)\n",
      "Process end: 0132\n",
      "(130, '0133', 3.0, 572654709.1466668, 72336784.96166669, 7.916507617115313)\n",
      "Process end: 0133\n",
      "(131, '0134', 4.0, 274267164.16, 134989915.51333338, 2.031760395708299)\n",
      "Process end: 0134\n",
      "(132, '0135', 2.0, 847650021.1200001, 137145498.4, 6.180662369593314)\n",
      "Process end: 0135\n",
      "(133, '0136', 1.0, 124148855.60000002, 378404760.2933332, 0.32808481453500177)\n",
      "Process end: 0136\n",
      "(134, '0137', 12.0, 82876110.90333335, 18882874.245000005, 4.388956354209588)\n",
      "Process end: 0137\n",
      "(135, '0138', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0138\n",
      "(136, '0139', 7.0, 520301725.22666675, 222344015.59999996, 2.340075238016286)\n",
      "Process end: 0139\n",
      "(137, '0140', 8.0, 7620678121.8133335, 4167848443.3066664, 1.8284441542138414)\n",
      "Process end: 0140\n",
      "(138, '0141', 5.0, 197484883.73333335, 45261002.43999999, 4.363245908994794)\n",
      "Process end: 0141\n",
      "(139, '0142', 2.0, 435513035.09333336, 573753205.526666, 0.7590598726042189)\n",
      "Process end: 0142\n",
      "(140, '0144', 12.0, 198973541.29333335, 223167966.40000007, 0.8915864785750599)\n",
      "Process end: 0144\n",
      "(141, '0145', 2.0, 320478019.41333336, 100088746.01333334, 3.2019386012753204)\n",
      "Process end: 0145\n",
      "(142, '0146', 8.0, 1010816676.0533335, 364152391.3333332, 2.775806777904872)\n",
      "Process end: 0146\n",
      "(143, '0147', 4.0, 434964467.6266667, 151616337.7333333, 2.868849585271565)\n",
      "Process end: 0147\n",
      "(144, '0148', 7.0, 421901494.61333334, 216320881.91999984, 1.950350289203063)\n",
      "Process end: 0148\n",
      "(145, '0149', 2.0, 350066813.97333336, 62160640.94666668, 5.631647432234295)\n",
      "Process end: 0149\n",
      "(146, '0150', 1.0, 468699867.30666673, 104747336.75333329, 4.474575505536676)\n",
      "Process end: 0150\n",
      "(147, '0151', 4.0, 406910964.79999995, 176690725.65666658, 2.3029559887069664)\n",
      "Process end: 0151\n",
      "(148, '0152', 11.0, 561643363.84, 203225286.1066666, 2.7636490251769703)\n",
      "Process end: 0152\n",
      "(149, '0153', 13.0, 414949537.1733334, 123821119.64666675, 3.3512016234179143)\n",
      "Process end: 0153\n",
      "(150, '0154', 4.0, 96302748.90666667, 75393785.68500005, 1.277330061512305)\n",
      "Process end: 0154\n",
      "(151, '0155', 3.0, 391913544.64000005, 48845530.029999964, 8.023529366951172)\n",
      "Process end: 0155\n",
      "(152, '0156', 3.0, 231417965.17333335, 15146715.813333329, 15.278425239194167)\n",
      "Process end: 0156\n",
      "(153, '0157', 4.0, 255261996.10666668, 170890765.60999998, 1.493714392322493)\n",
      "Process end: 0157\n",
      "(154, '0158', 3.0, 514220773.4133334, 17792829.94833334, 28.900448939630348)\n",
      "Process end: 0158\n",
      "(155, '0159', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0159\n",
      "(156, '0160', 2.0, 518890740.8, 61199150.08666668, 8.478724623874303)\n",
      "Process end: 0160\n",
      "(157, '0161', 3.0, 583930941.6533334, 147072087.2799999, 3.9703723014526173)\n",
      "Process end: 0161\n",
      "(158, '0162', 5.0, 271432679.8933334, 34870225.96250002, 7.784081473553864)\n",
      "Process end: 0162\n",
      "(159, '0163', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0163\n",
      "(160, '0164', 6.0, 137370809.64000002, 25226335.570000004, 5.445531684885931)\n",
      "Process end: 0164\n",
      "(161, '0165', 6.0, 153485688.32000002, 90881114.31333338, 1.6888623063183743)\n",
      "Process end: 0165\n",
      "(162, '0166', 3.0, 446485702.40000004, 197021898.72000003, 2.266172975190582)\n",
      "Process end: 0166\n",
      "(163, '0167', 2.0, 466809351.8933332, 386157814.9333332, 1.2088564152817256)\n",
      "Process end: 0167\n",
      "(164, '0168', 8.0, 243796135.14666665, 205975583.26666662, 1.1836166757252755)\n",
      "Process end: 0168\n",
      "(165, '0169', 2.0, 347803603.62666667, 146103816.41333333, 2.380523741027523)\n",
      "Process end: 0169\n",
      "(166, '0170', 3.0, 539211869.2266668, 38100834.09333335, 14.152232675688714)\n",
      "Process end: 0170\n",
      "(167, '0171', 7.0, 357558841.32000005, 29750749.29999999, 12.018481878034587)\n",
      "Process end: 0171\n",
      "(168, '0173', 10.0, 303298197.2, 267905747.76333326, 1.1321078391641386)\n",
      "Process end: 0173\n",
      "(169, '0174', 7.0, 139876269.01333338, 320006054.9733332, 0.43710506985559877)\n",
      "Process end: 0174\n",
      "(170, '0175', 3.0, 186780500.73333323, 35827925.09999999, 5.213265915120865)\n",
      "Process end: 0175\n",
      "(171, '0176', 9.0, 286242429.8666667, 95507853.3333333, 2.997056471028073)\n",
      "Process end: 0176\n",
      "(172, '0177', 2.0, 622828830.4000001, 204360970.1800002, 3.0476897318084535)\n",
      "Process end: 0177\n",
      "(173, '0178', 3.0, 387237459.20000005, 57169377.111666635, 6.773511952799919)\n",
      "Process end: 0178\n",
      "(174, '0179', 2.0, 1097743400.1066666, 450484130.9866666, 2.436808146165658)\n",
      "Process end: 0179\n",
      "(175, '0180', 3.0, 6198681391.786667, 1512447972.906666, 4.098442725189325)\n",
      "Process end: 0180\n",
      "(176, '0181', 3.0, 928658115.2, 685048951.6266665, 1.3556084028665065)\n",
      "Process end: 0181\n",
      "(177, '0182', 3.0, 92654064.69333333, 72122989.54666667, 1.2846675557366098)\n",
      "Process end: 0182\n",
      "(178, '0183', 2.0, 317706013.5466667, 85291857.17, 3.724927842917395)\n",
      "Process end: 0183\n",
      "(179, '0184', 2.0, 209490976.19000003, 29352775.769999992, 7.137007342389414)\n",
      "Process end: 0184\n",
      "(180, '0185', 3.0, 381511680.5333333, 905605028.2666667, 0.42127822684857313)\n",
      "Process end: 0185\n",
      "(181, '0186', 6.0, 2250049239.8933334, 611983925.5466666, 3.6766476143690094)\n",
      "Process end: 0186\n",
      "(182, '0187', 3.0, 552892518.9333334, 87017826.08000004, 6.353784550133789)\n",
      "Process end: 0187\n",
      "(183, '0188', 15.0, 138314544.88000003, 47212874.59333331, 2.9295938040495995)\n",
      "Process end: 0188\n",
      "(184, '0189', 3.0, 419720966.18666667, 43728828.246666655, 9.59826693317951)\n",
      "Process end: 0189\n",
      "(185, '0190', 2.0, 710089077.7600002, 325586442.18666655, 2.1809540747181635)\n",
      "Process end: 0190\n",
      "(186, '0191', 5.0, 685237762.5866668, 31823036.918333337, 21.53275830792565)\n",
      "Process end: 0191\n",
      "(187, '0192', 6.0, 378062379.25333333, 260233041.5733332, 1.4527839238538662)\n",
      "Process end: 0192\n",
      "(188, '0193', 2.0, 811690944.6400001, 155717877.20000008, 5.212573914024559)\n",
      "Process end: 0193\n",
      "(189, '0194', 8.0, 266572265.01333335, 42848341.155, 6.2212972037594705)\n",
      "Process end: 0194\n",
      "(190, '0195', 7.0, 305366273.49333334, 65293719.826666646, 4.6768092598182545)\n",
      "Process end: 0195\n",
      "(191, '0196', 5.0, 1017965995.52, 197561914.31999996, 5.152642901967201)\n",
      "Process end: 0196\n",
      "(192, '0197', 2.0, 567451255.6266667, 146014756.52666658, 3.8862596433740135)\n",
      "Process end: 0197\n",
      "(193, '0198', 3.0, 843637886.9333334, 248676560.12000012, 3.3925106834606034)\n",
      "Process end: 0198\n",
      "(194, '0199', 3.0, 719334578.1866667, 1929413020.0533316, 0.3728256058761246)\n",
      "Process end: 0199\n",
      "(195, '0200', 7.0, 359609735.8933334, 59721940.424999975, 6.0214007337042)\n",
      "Process end: 0200\n",
      "(196, '0201', 2.0, 6170187451.733334, 719274366.3733331, 8.578350265482353)\n",
      "Process end: 0201\n",
      "(197, '0202', 3.0, 218390364.3733334, 132933657.01333335, 1.642852301516302)\n",
      "Process end: 0202\n",
      "(198, '0203', 2.0, 118540768.68666667, 131321130.31999995, 0.9026785590240471)\n",
      "Process end: 0203\n",
      "(199, '0204', 5.0, 217681376.7466667, 48535047.586666666, 4.485034785594135)\n",
      "Process end: 0204\n",
      "(200, '0205', 2.0, 9116275698.346668, 1089889473.6933334, 8.364403839459184)\n",
      "Process end: 0205\n",
      "(201, '0206', 2.0, 215966880.56000003, 55502662.76124997, 3.8911084588680422)\n",
      "Process end: 0206\n",
      "(202, '0207', 3.0, 752706629.5466666, 311731991.59999985, 2.414595389081866)\n",
      "Process end: 0207\n",
      "(203, '0208', 8.0, 595745893.5466667, 133565104.05333331, 4.460340878473632)\n",
      "Process end: 0208\n",
      "(204, '0209', 2.0, 942695613.0133334, 186478040202.24026, 0.005055263407910957)\n",
      "Process end: 0209\n",
      "(205, '0210', 9.0, 384364108.6933333, 54928901.40666665, 6.997483999319228)\n",
      "Process end: 0210\n",
      "(206, '0211', 3.0, 574614287.1466668, 38414497.236666664, 14.958266500444967)\n",
      "Process end: 0211\n",
      "(207, '0212', 4.0, 571442835.4133334, 221558325.84, 2.5791982009559193)\n",
      "Process end: 0212\n",
      "(208, '0213', 2.0, 165345497.28000003, 53881383.08666669, 3.068694376572451)\n",
      "Process end: 0213\n",
      "(209, '0214', 11.0, 152454804.42666668, 107281258.03333339, 1.4210758451331489)\n",
      "Process end: 0214\n",
      "(210, '0215', 1.0, 268756045.86666673, 164973748.62666675, 1.6290837063711139)\n",
      "Process end: 0215\n",
      "(211, '0216', 2.0, 154766888.09333336, 45268610.49333332, 3.4188566074084776)\n",
      "Process end: 0216\n",
      "(212, '0217', 4.0, 433686371.7866666, 27785588.510000005, 15.608320537482346)\n",
      "Process end: 0217\n",
      "(213, '0218', 3.0, 322730608.5866667, 161995240.31333348, 1.992222783598065)\n",
      "Process end: 0218\n",
      "(214, '0219', 8.0, 1294685635.4133332, 2018978317.4399993, 0.6412578204678065)\n",
      "Process end: 0219\n",
      "(215, '0220', 7.0, 181802170.96, 81933215.20666665, 2.2189068316363025)\n",
      "Process end: 0220\n",
      "(216, '0221', 3.0, 412365822.3466667, 36554296.55166668, 11.280912539619507)\n",
      "Process end: 0221\n",
      "(217, '0222', 2.0, 155833997.06666666, 94514150.81333329, 1.6487901094772663)\n",
      "Process end: 0222\n",
      "(218, '0223', 2.0, 360919664.6399999, 96121641.40333325, 3.754822112593306)\n",
      "Process end: 0223\n",
      "(219, '0224', 3.0, 419466986.4533334, 358843566.3466669, 1.1689410812735603)\n",
      "Process end: 0224\n",
      "(220, '0225', 2.0, 955018823.6800001, 108825445.69333333, 8.775694118186411)\n",
      "Process end: 0225\n",
      "(221, '0226', 2.0, 615341894.5066667, 131905499.08333324, 4.6650207821731176)\n",
      "Process end: 0226\n",
      "(222, '0227', 10.0, 898001244.2666667, 559078079.6266669, 1.606217945204221)\n",
      "Process end: 0227\n",
      "(223, '0228', 7.0, 169430593.21333337, 14292691.010833327, 11.854352205956967)\n",
      "Process end: 0228\n",
      "(224, '0229', 12.0, 226389933.06666672, 104173437.67999999, 2.173202095548497)\n",
      "Process end: 0229\n",
      "(225, '0230', 5.0, 545666398.4000001, 173830185.28, 3.139077355990034)\n",
      "Process end: 0230\n",
      "(226, '0231', 3.0, 165977779.57333335, 29747202.08333333, 5.579609776689784)\n",
      "Process end: 0231\n",
      "(227, '0233', 3.0, 577472747.0933334, 205941164.74666673, 2.804066626522661)\n",
      "Process end: 0233\n",
      "(228, '0234', 3.0, 808283287.2533334, 195127825.19999987, 4.142327145935586)\n",
      "Process end: 0234\n",
      "(229, '0235', 2.0, 88130331.82, 75288457.75666663, 1.1705689616440076)\n",
      "Process end: 0235\n",
      "(230, '0236', 2.0, 287894506.56000006, 41848110.30999999, 6.879510315456348)\n",
      "Process end: 0236\n",
      "(231, '0237', 12.0, 176921992.0666667, 29517221.721666664, 5.993856526706909)\n",
      "Process end: 0237\n",
      "(232, '0238', 6.0, 1443452687.3600001, 2480719401.8133335, 0.581868584695584)\n",
      "Process end: 0238\n",
      "(233, '0239', 1.0, 209990559.44000003, 92714913.37166661, 2.2649059552934068)\n",
      "Process end: 0239\n",
      "(234, '0240', 7.0, 666749231.1466668, 769092818.5333334, 0.8669294720735571)\n",
      "Process end: 0240\n",
      "(235, '0241', 2.0, 536816113.38666666, 59821525.333333336, 8.973627977478964)\n",
      "Process end: 0241\n",
      "(236, '0242', 5.0, 428434916.48, 82996998.66666666, 5.162053126772505)\n",
      "Process end: 0242\n",
      "(237, '0243', 2.0, 258738069.5466667, 257142939.4933334, 1.0062032815541282)\n",
      "Process end: 0243\n",
      "(238, '0244', 4.0, 376016245.5466667, 79649863.16166663, 4.720864928335914)\n",
      "Process end: 0244\n",
      "(239, '0245', 5.0, 816952335.8933332, 27712514.94916665, 29.47954515827514)\n",
      "Process end: 0245\n",
      "(240, '0246', 2.0, 347791646.5866667, 47929606.173750006, 7.256300945304753)\n",
      "Process end: 0246\n",
      "(241, '0247', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0247\n",
      "(242, '0248', 5.0, 129774981.68, 104369662.10666667, 1.2434167080791052)\n",
      "Process end: 0248\n",
      "(243, '0249', 14.0, 179274352.32, 107526051.4266667, 1.6672643507444889)\n",
      "Process end: 0249\n",
      "(244, '0250', 5.0, 499918266.88000005, 83635230.99166656, 5.977364574144741)\n",
      "Process end: 0250\n",
      "(245, '0251', 3.0, 613822726.0266666, 335862186.85333353, 1.8276029575628134)\n",
      "Process end: 0251\n",
      "(246, '0252', 10.0, 9346102166.186668, 2428608956.7999997, 3.8483355420468115)\n",
      "Process end: 0252\n",
      "(247, '0253', 2.0, 374046850.1333333, 161041733.76000002, 2.322670288006053)\n",
      "Process end: 0253\n",
      "(248, '0254', 8.0, 1315092264.1066666, 115070187744.42671, 0.011428609702345442)\n",
      "Process end: 0254\n",
      "(249, '0255', 11.0, 234918124.90666667, 17212538.003333326, 13.648081698420835)\n",
      "Process end: 0255\n",
      "(250, '0256', 7.0, 151413143.73333335, 80265254.50500003, 1.8864095637284903)\n",
      "Process end: 0256\n",
      "(251, '0257', 2.0, 183972637.57333338, 10449452.046666667, 17.605960269660255)\n",
      "Process end: 0257\n",
      "(252, '0258', 3.0, 39611076.39333333, 36313392.99583337, 1.0908117673795545)\n",
      "Process end: 0258\n",
      "(253, '0259', 2.0, 96713197.28, 18726551.24666667, 5.164495907767052)\n",
      "Process end: 0259\n",
      "(254, '0260', 2.0, 684132160.2133334, 475558589.1350003, 1.438586487224866)\n",
      "Process end: 0260\n",
      "(255, '0261', 4.0, 577709715.9333334, 54100115.846666664, 10.678530108340397)\n",
      "Process end: 0261\n",
      "(256, '0262', 1.0, 421985159.4666667, 131542678.70666666, 3.2079714630691964)\n",
      "Process end: 0262\n",
      "(257, '0263', 8.0, 846244653.7066667, 54570082.27000002, 15.50748356067425)\n",
      "Process end: 0263\n",
      "(258, '0264', 4.0, 401327159.4666667, 37073605.7375, 10.825145045460841)\n",
      "Process end: 0264\n",
      "(259, '0265', 11.0, 285505628.85333335, 59845001.87000002, 4.77075144008736)\n",
      "Process end: 0265\n",
      "(260, '0266', 2.0, 556416904.1066668, 126363143.04000004, 4.403316431679244)\n",
      "Process end: 0266\n",
      "(261, '0267', 3.0, 219624259.04000002, 344090590.82666653, 0.6382745268109768)\n",
      "Process end: 0267\n",
      "(262, '0268', 8.0, 439331261.28000015, 164724103.1199999, 2.667073324174979)\n",
      "Process end: 0268\n",
      "(263, '0269', 2.0, 976563000.32, 257808877.54666683, 3.7879339517438813)\n",
      "Process end: 0269\n",
      "(264, '0270', 2.0, 870069360.2133332, 466552921.38666654, 1.8648888911194774)\n",
      "Process end: 0270\n",
      "(265, '0271', 2.0, 121429173.17333335, 169789525.82666665, 0.7151746998651553)\n",
      "Process end: 0271\n",
      "(266, '0272', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0272\n",
      "(267, '0273', 5.0, 87041332.16000003, 14074926.795000004, 6.184141020962234)\n",
      "Process end: 0273\n",
      "(268, '0274', 4.0, 768.7781473795574, 650.2656948343913, 1.1822523523639805)\n",
      "Process end: 0274\n",
      "(269, '0275', 4.0, 432412745.3866667, 55084405.97, 7.850002877804778)\n",
      "Process end: 0275\n",
      "(270, '0276', 13.0, 450319233.28, 158866055.76000002, 2.834584336633246)\n",
      "Process end: 0276\n",
      "(271, '0277', 2.0, 182345791.84000003, 25344696.60000001, 7.19463305155525)\n",
      "Process end: 0277\n",
      "(272, '0278', 3.0, 639562330.4533334, 270613530.2599999, 2.363378984926789)\n",
      "Process end: 0278\n",
      "(273, '0279', 9.0, 1432310659.4133334, 87575516.69999996, 16.355149400030136)\n",
      "Process end: 0279\n",
      "(274, '0281', 4.0, 613903632.8, 90438179.93333331, 6.788102472346749)\n",
      "Process end: 0281\n",
      "(275, '0282', 2.0, 152416488.88000003, 32751393.413333334, 4.653740589185135)\n",
      "Process end: 0282\n",
      "(276, '0283', 2.0, 204862686.18666667, 194034072.8749999, 1.0558077926789835)\n",
      "Process end: 0283\n",
      "(277, '0284', 2.0, 537787607.2533334, 260182577.73333335, 2.0669624074695863)\n",
      "Process end: 0284\n",
      "(278, '0285', 3.0, 238006916.95333332, 19376823.0791667, 12.283072203370132)\n",
      "Process end: 0285\n",
      "(279, '0286', 2.0, 183200194.4, 317126263.78666675, 0.5776884960976937)\n",
      "Process end: 0286\n",
      "(280, '0287', 10.0, 1259991796.5866666, 1314230350.5066674, 0.9587297965694594)\n",
      "Process end: 0287\n",
      "(281, '0288', 2.0, 419665566.72, 36602810.79333332, 11.465391799813256)\n",
      "Process end: 0288\n",
      "(282, '0289', 2.0, 287936868.2666667, 282066193.54666656, 1.0208131100228035)\n",
      "Process end: 0289\n",
      "(283, '0290', 1.0, 831993849.1733334, 155107315.1266667, 5.3639884649791965)\n",
      "Process end: 0290\n",
      "(284, '0291', 2.0, 145368306.02666667, 145286105.44666666, 1.0005657841797555)\n",
      "Process end: 0291\n",
      "(285, '0292', 3.0, 465302668.5866666, 243229770.90999997, 1.9130169257070022)\n",
      "Process end: 0292\n",
      "(286, '0293', 12.0, 93562225.01333334, 24494212.273749992, 3.819768685258039)\n",
      "Process end: 0293\n",
      "(287, '0294', 4.0, 257050925.65333334, 265532930.45333335, 0.9680566746071041)\n",
      "Process end: 0294\n",
      "(288, '0295', 2.0, 454016162.24, 311505852.22666675, 1.4574883874401046)\n",
      "Process end: 0295\n",
      "(289, '0296', 11.0, 1392090245.1200004, 124021133946.88007, 0.01122462116590751)\n",
      "Process end: 0296\n",
      "(290, '0297', 3.0, 638850044.9066666, 468215026.7999998, 1.3644372955581248)\n",
      "Process end: 0297\n",
      "(291, '0298', 3.0, 292683796.75333333, 22273187.24583334, 13.140633781906802)\n",
      "Process end: 0298\n",
      "(292, '0299', 11.0, 281664921.7066667, 4069724970.773332, 0.0692098173044712)\n",
      "Process end: 0299\n",
      "(293, '0300', 2.0, 267688375.2266667, 59126290.12666668, 4.527400157412142)\n",
      "Process end: 0300\n",
      "(294, '0301', 3.0, 878497204.9066668, 143891188.2866666, 6.1052884152744955)\n",
      "Process end: 0301\n",
      "(295, '0302', 3.0, 367630662.1866667, 156745111.17333344, 2.3454043283055235)\n",
      "Process end: 0302\n",
      "(296, '0303', 9.0, 762592088.32, 325617226.8900001, 2.341989383066697)\n",
      "Process end: 0303\n",
      "(297, '0304', 14.0, 1104703842.9866667, 1727854530.5599995, 0.6393500282854431)\n",
      "Process end: 0304\n",
      "(298, '0305', 2.0, 801731414.6933334, 55518834.11166667, 14.44071057185364)\n",
      "Process end: 0305\n",
      "(299, '0306', 3.0, 467712875.54666674, 78917196.18666668, 5.926628138693153)\n",
      "Process end: 0306\n",
      "(300, '0307', 4.0, 174540787.54666668, 33473329.18333332, 5.214324114303281)\n",
      "Process end: 0307\n",
      "(301, '0308', 2.0, 9246289945.600002, 1459487545.6266663, 6.335298970728719)\n",
      "Process end: 0308\n",
      "(302, '0309', 3.0, 751083642.0266668, 139810390.87999997, 5.3721589454057534)\n",
      "Process end: 0309\n",
      "(303, '0310', 2.0, 107327610.24, 81307912.20666668, 1.3200143421122044)\n",
      "Process end: 0310\n",
      "(304, '0311', 2.0, 484253966.3466667, 78423619.21999998, 6.174848485227392)\n",
      "Process end: 0311\n",
      "(305, '0312', 14.0, 496862188.3733334, 128556917.71, 3.86491989092458)\n",
      "Process end: 0312\n",
      "(306, '0313', 2.0, 182616477.2266667, 58767942.059999995, 3.107416574843164)\n",
      "Process end: 0313\n",
      "(307, '0314', 6.0, 1272720730.4533334, 226072019.17333338, 5.62971364217133)\n",
      "Process end: 0314\n",
      "(308, '0315', 4.0, 363809590.4533334, 80838515.30666664, 4.500448691730617)\n",
      "Process end: 0315\n",
      "(309, '0316', 3.0, 285917620.18666667, 38842550.29999998, 7.360938403333079)\n",
      "Process end: 0316\n",
      "(310, '0317', 7.0, 194368167.14666668, 44789270.580000006, 4.33961447975576)\n",
      "Process end: 0317\n",
      "(311, '0318', 2.0, 257813667.52000004, 164098667.9666667, 1.5710893373757893)\n",
      "Process end: 0318\n",
      "(312, '0319', 2.0, 395767575.25333345, 164558904.22666666, 2.405020725637523)\n",
      "Process end: 0319\n",
      "(313, '0320', 2.0, 87146973.36000001, 33039470.846666656, 2.637662502660579)\n",
      "Process end: 0320\n",
      "(314, '0321', 3.0, 645337423.3600001, 1083469766.1066685, 0.5956210718079845)\n",
      "Process end: 0321\n",
      "(315, '0322', 2.0, 1457982289.6000001, 109620010.19333331, 13.300329812308933)\n",
      "Process end: 0322\n",
      "(316, '0323', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0323\n",
      "(317, '0324', 3.0, 422560952.6133334, 136320324.2666667, 3.0997648728206464)\n",
      "Process end: 0324\n",
      "(318, '0325', 2.0, 190195715.86666673, 220428447.5866667, 0.86284559887347)\n",
      "Process end: 0325\n",
      "(319, '0326', 2.0, 765.4200533040365, 864.5812495676673, 0.8853072556070164)\n",
      "Process end: 0326\n",
      "(320, '0327', 3.0, 78009856.10666668, 12373020.033333324, 6.304835512793607)\n",
      "Process end: 0327\n",
      "(321, '0328', 1.0, 719442404.48, 371674822.9333333, 1.9356769952885544)\n",
      "Process end: 0328\n",
      "(322, '0329', 2.0, 534409544.8133334, 125773588.23999998, 4.2489806667006915)\n",
      "Process end: 0329\n",
      "(323, '0330', 2.0, 363418281.8133334, 76835168.26666665, 4.729842987420057)\n",
      "Process end: 0330\n",
      "(324, '0331', 2.0, 266239054.66666672, 77315265.38666661, 3.4435509382934995)\n",
      "Process end: 0331\n",
      "(325, '0332', 4.0, 1308613217.2799997, 106896883284.00003, 0.012241827610664011)\n",
      "Process end: 0332\n",
      "(326, '0333', 10.0, 392840846.1333334, 23641097.69333332, 16.616861502336782)\n",
      "Process end: 0333\n",
      "(327, '0334', 2.0, 1149.3265180460612, 791.7732831319172, 1.4515853749192142)\n",
      "Process end: 0334\n",
      "(328, '0336', 10.0, 1123930449.4933333, 197365452.88, 5.694666584717303)\n",
      "Process end: 0336\n",
      "(329, '0337', 3.0, 196456215.57333335, 33357456.899999984, 5.889424249644566)\n",
      "Process end: 0337\n",
      "(330, '0338', 3.0, 347441407.1466667, 76565578.26333332, 4.537827768396204)\n",
      "Process end: 0338\n",
      "(331, '0339', 2.0, 276271288.6133334, 54209644.93166666, 5.096349348194108)\n",
      "Process end: 0339\n",
      "(332, '0340', 2.0, 266920586.88000003, 79279946.6933333, 3.3668108773141436)\n",
      "Process end: 0340\n",
      "(333, '0341', 2.0, 287532983.8266667, 59528412.013333336, 4.8301806499099005)\n",
      "Process end: 0341\n",
      "(334, '0342', 3.0, 163481096.6266667, 57063404.06000001, 2.8649026345286464)\n",
      "Process end: 0342\n",
      "(335, '0343', 2.0, 195261537.0666667, 117518459.70999996, 1.6615392811351777)\n",
      "Process end: 0343\n",
      "(336, '0344', 2.0, 436244505.5733334, 39234213.09333335, 11.118981908355384)\n",
      "Process end: 0344\n",
      "(337, '0345', 3.0, 131270892.74666668, 48627292.51416666, 2.6995311883429114)\n",
      "Process end: 0345\n",
      "(338, '0347', 1.0, 235274745.44000003, 316114136.1066666, 0.7442715100871385)\n",
      "Process end: 0347\n",
      "(339, '0348', 4.0, 430477947.5200001, 82849399.46666673, 5.195909086742346)\n",
      "Process end: 0348\n",
      "(340, '0349', 7.0, 444090148.47999996, 226600655.37333322, 1.959791986251516)\n",
      "Process end: 0349\n",
      "(341, '0350', 10.0, 806342283.52, 537700101.12, 1.4996134124587905)\n",
      "Process end: 0350\n",
      "(342, '0351', 14.0, 690675014.2933334, 502115704.21333325, 1.3755296010416898)\n",
      "Process end: 0351\n",
      "(343, '0352', 2.0, 154242784.06666666, 76758727.73333332, 2.0094494609462505)\n",
      "Process end: 0352\n",
      "(344, '0353', 6.0, 570151989.3866667, 140870242.9999999, 4.047355759772963)\n",
      "Process end: 0353\n",
      "(345, '0354', 3.0, 296511114.56000006, 45337502.51666668, 6.540084876774996)\n",
      "Process end: 0354\n",
      "(346, '0355', 6.0, 99592946.24000001, 19206142.48833333, 5.18547367335722)\n",
      "Process end: 0355\n",
      "(347, '0356', 8.0, 674631688.1066667, 244137719707.3071, 0.002763324278261762)\n",
      "Process end: 0356\n",
      "(348, '0357', 6.0, 140474832.3, 69582597.95333333, 2.0188213207303884)\n",
      "Process end: 0357\n",
      "(349, '0358', 12.0, 63846983.04666667, 41434203.96666666, 1.5409245728005496)\n",
      "Process end: 0358\n",
      "(350, '0359', 2.0, 321800962.9866667, 8555319.583125, 37.614137012649444)\n",
      "Process end: 0359\n",
      "(351, '0360', 3.0, 273769947.1466667, 70914891.32666665, 3.860542433683727)\n",
      "Process end: 0360\n",
      "(352, '0361', 2.0, 381210713.53333336, 39891621.72333334, 9.556159841713235)\n",
      "Process end: 0361\n",
      "(353, '0362', 2.0, 195736632.10666668, 67408948.68, 2.9037188079561465)\n",
      "Process end: 0362\n",
      "(354, '0363', 2.0, 109523999.61333334, 37128555.63916667, 2.9498588816042495)\n",
      "Process end: 0363\n",
      "(355, '0364', 8.0, 228686512.24, 29723989.680000007, 7.693668134795287)\n",
      "Process end: 0364\n",
      "(356, '0365', 9.0, 107927694.08000001, 34982284.65041665, 3.0852099901003625)\n",
      "Process end: 0365\n",
      "(357, '0366', 3.0, 194776586.55999994, 124822886.77333328, 1.5604236658433965)\n",
      "Process end: 0366\n",
      "(358, '0367', 2.0, 352005525.8933334, 164229826.17333332, 2.1433714818757448)\n",
      "Process end: 0367\n",
      "(359, '0368', 3.0, 620143747.9333334, 71699542.35166663, 8.649200923650225)\n",
      "Process end: 0368\n",
      "(360, '0369', 4.0, 761019137.7066666, 897266622.6666664, 0.848152732400684)\n",
      "Process end: 0369\n",
      "(361, '0370', 13.0, 220699943.62000006, 24669115.091666676, 8.94640698703268)\n",
      "Process end: 0370\n",
      "(362, '0371', 2.0, 7102786607.786667, 1427974493.386666, 4.974029046514193)\n",
      "Process end: 0371\n",
      "(363, '0372', 7.0, 479771468.2666667, 143609005.05333328, 3.3408174375171664)\n",
      "Process end: 0372\n",
      "(364, '0373', 4.0, 406001762.98666674, 175877363.09333333, 2.308436718892656)\n",
      "Process end: 0373\n",
      "(365, '0374', 4.0, 360332943.92, 79992264.56666666, 4.504597361657308)\n",
      "Process end: 0374\n",
      "(366, '0375', 2.0, 2030804480.0000002, 356886592.23999983, 5.690335597237345)\n",
      "Process end: 0375\n",
      "(367, '0376', 4.0, 434567056.1600001, 323613323.0266667, 1.342858977793663)\n",
      "Process end: 0376\n",
      "(368, '0377', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0377\n",
      "(369, '0378', 2.0, 5940187938.133334, 1790489673.7066662, 3.3176331734077946)\n",
      "Process end: 0378\n",
      "(370, '0379', 2.0, 74722323.72, 36982233.38666668, 2.0204924602238834)\n",
      "Process end: 0379\n",
      "(371, '0380', 10.0, 277265799.78666675, 271419681.98000014, 1.021539034177696)\n",
      "Process end: 0380\n",
      "(372, '0381', 10.0, 436140089.2800001, 87064108.71333331, 5.009413129307187)\n",
      "Process end: 0381\n",
      "(373, '0382', 7.0, 879631315.52, 38166817.465, 23.04701764370701)\n",
      "Process end: 0382\n",
      "(374, '0383', 2.0, 262346626.66666666, 101858910.65999998, 2.575588379718361)\n",
      "Process end: 0383\n",
      "(375, '0384', 1.0, 878354288.0, 63274623.9075, 13.881620051729582)\n",
      "Process end: 0384\n",
      "(376, '0385', 2.0, 1248354117.9733334, 377739781.41333336, 3.3047991749837693)\n",
      "Process end: 0385\n",
      "(377, '0386', 3.0, 4713474024.106667, 1831427335.6799998, 2.573661500119838)\n",
      "Process end: 0386\n",
      "(378, '0387', 3.0, 983219001.0666667, 287643469.70666665, 3.4181864169186067)\n",
      "Process end: 0387\n",
      "(379, '0388', 2.0, 338747337.3866667, 105125157.14666666, 3.2223241950930848)\n",
      "Process end: 0388\n",
      "(380, '0389', 2.0, 733279940.0533335, 101713495.01333326, 7.209268936803425)\n",
      "Process end: 0389\n",
      "(381, '0390', 4.0, 168428433.44, 111303576.70666668, 1.513234690416842)\n",
      "Process end: 0390\n",
      "(382, '0391', 3.0, 265480295.68, 52434636.693333305, 5.063071138123361)\n",
      "Process end: 0391\n",
      "(383, '0392', 3.0, 1243075485.8666668, 63358252.133333325, 19.61978817298645)\n",
      "Process end: 0392\n",
      "(384, '0393', 6.0, 345173419.2000001, 32283642.001666643, 10.691898367048568)\n",
      "Process end: 0393\n",
      "(385, '0394', 2.0, 465112677.84000003, 259136317.71999994, 1.7948571698952678)\n",
      "Process end: 0394\n",
      "(386, '0395', 7.0, 87032762.50666669, 38430808.62999998, 2.2646612342870895)\n",
      "Process end: 0395\n",
      "(387, '0396', 11.0, 1081792486.4, 180330687.76, 5.998937284816132)\n",
      "Process end: 0396\n",
      "(388, '0397', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0397\n",
      "(389, '0398', 2.0, 876347971.84, 343002910.6933333, 2.5549286741286914)\n",
      "Process end: 0398\n",
      "(390, '0399', 4.0, 268601265.6, 54489465.260000005, 4.929416435238476)\n",
      "Process end: 0399\n",
      "(391, '0400', None, None, None, 'FileNotFound')\n",
      "Process end: 0400\n",
      "(392, '0401', 8.0, 633357384.6133335, 46963215.75333331, 13.48624395611963)\n",
      "Process end: 0401\n",
      "(393, '0402', 2.0, 550378947.36, 74065562.66666669, 7.430969637495225)\n",
      "Process end: 0402\n",
      "(394, '0403', 2.0, 217563905.26666668, 52974217.526666656, 4.106977232030795)\n",
      "Process end: 0403\n",
      "(395, '0404', 6.0, 608110609.4933333, 153715965.44166666, 3.956066682768251)\n",
      "Process end: 0404\n",
      "(396, '0405', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0405\n",
      "(397, '0406', 4.0, 434026272.0, 299651669.3333334, 1.4484360222842207)\n",
      "Process end: 0406\n",
      "(398, '0407', 2.0, 222198474.45333332, 64932284.81999999, 3.4220030154382197)\n",
      "Process end: 0407\n",
      "(399, '0408', 2.0, 138353703.78666666, 41158294.57062499, 3.3615023467325784)\n",
      "Process end: 0408\n",
      "(400, '0409', 3.0, 377082580.2666666, 55332747.82500003, 6.814817537333577)\n",
      "Process end: 0409\n",
      "(401, '0410', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0410\n",
      "(402, '0411', 2.0, 358600278.3466667, 40201432.13333338, 8.920087154042706)\n",
      "Process end: 0411\n",
      "(403, '0412', 3.0, 45610656.92, 44655917.706666626, 1.0213799035461506)\n",
      "Process end: 0412\n",
      "(404, '0413', 11.0, 139986654.98666668, 83044477.52000003, 1.6856828914716573)\n",
      "Process end: 0413\n",
      "(405, '0414', 4.0, 1131787739.7333333, 2272049535.3600006, 0.49813515159738997)\n",
      "Process end: 0414\n",
      "(406, '0415', 4.0, 311783629.11999995, 21723877.393333323, 14.352116957522549)\n",
      "Process end: 0415\n",
      "(407, '0416', 2.0, 309266163.2000001, 50882387.74, 6.0780591661754455)\n",
      "Process end: 0416\n",
      "(408, '0417', 2.0, 442414996.30666673, 172000604.77333328, 2.5721711670124203)\n",
      "Process end: 0417\n",
      "(409, '0418', 4.0, 124378981.79, 43056557.85333335, 2.888734910340048)\n",
      "Process end: 0418\n",
      "(410, '0419', 2.0, 237417612.64000005, 78737232.9791666, 3.0153156728636796)\n",
      "Process end: 0419\n",
      "(411, '0420', 9.0, 246825929.45333332, 19702442.89499999, 12.527681504711879)\n",
      "Process end: 0420\n",
      "(412, '0421', 3.0, 535996226.1866667, 43799181.83333334, 12.237585355504223)\n",
      "Process end: 0421\n",
      "(413, '0422', 2.0, 378267607.8933332, 513999070.8933337, 0.7359305285044615)\n",
      "Process end: 0422\n",
      "(414, '0423', 3.0, 549034074.4533334, 151796379.85333332, 3.6169115164921175)\n",
      "Process end: 0423\n",
      "(415, '0424', 2.0, 1008470920.666667, 66447498.88666669, 15.17695831391219)\n",
      "Process end: 0424\n",
      "(416, '0425', 2.0, 8357423404.373335, 1743097525.653333, 4.794581646394614)\n",
      "Process end: 0425\n",
      "(417, '0426', 2.0, 409067624.42666674, 147707305.64666668, 2.7694474734053087)\n",
      "Process end: 0426\n",
      "(418, '0427', 3.0, 447697218.1333334, 303307448.1466667, 1.4760508548964015)\n",
      "Process end: 0427\n",
      "(419, '0428', 14.0, 293740023.5733334, 44041335.30666666, 6.66964390448146)\n",
      "Process end: 0428\n",
      "(420, '0429', 3.0, 194171085.27999997, 548197041.9333329, 0.3541994400320267)\n",
      "Process end: 0429\n",
      "(421, '0430', 8.0, 1425.019262491862, 1130.2038517252606, 1.2608515360450812)\n",
      "Process end: 0430\n",
      "(422, '0431', 3.0, 194506472.88666666, 33844546.322083354, 5.747055110020854)\n",
      "Process end: 0431\n",
      "(423, '0432', 2.0, 941136625.2799999, 278106815.6666667, 3.3840832811808093)\n",
      "Process end: 0432\n",
      "(424, '0433', 2.0, 369020.3754166666, 371161.2887630209, 0.9942318517281548)\n",
      "Process end: 0433\n",
      "(425, '0434', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0434\n",
      "(426, '0435', 2.0, 64396788.330000006, 39511754.57166668, 1.6298134321824835)\n",
      "Process end: 0435\n",
      "(427, '0436', 4.0, 153299711.71333334, 13634585.19583335, 11.243445217547274)\n",
      "Process end: 0436\n",
      "(428, '0437', 2.0, 281666999.9466667, 51281466.15666668, 5.492569168872125)\n",
      "Process end: 0437\n",
      "(429, '0438', 3.0, 298030239.04, 66769470.18666669, 4.463570524175197)\n",
      "Process end: 0438\n",
      "(430, '0439', 2.0, 591665166.2933333, 549157199.4666665, 1.0774058263607396)\n",
      "Process end: 0439\n",
      "(431, '0440', 2.0, 1223.4880281575522, 590.8268956502282, 2.070806249961007)\n",
      "Process end: 0440\n",
      "(432, '0441', 2.0, 524843226.3466667, 308994896.0533332, 1.6985498241242067)\n",
      "Process end: 0441\n",
      "(433, '0442', 3.0, 6650705687.893333, 2232369780.0533333, 2.979213276993224)\n",
      "Process end: 0442\n",
      "(434, '0444', 2.0, 247353177.1733333, 187972159.14000005, 1.3159032609137973)\n",
      "Process end: 0444\n",
      "(435, '0445', 3.0, 195796572.85333332, 95693677.27333331, 2.0460763807212934)\n",
      "Process end: 0445\n",
      "(436, '0446', 7.0, 268610022.5533334, 69867648.39583339, 3.844555079792154)\n",
      "Process end: 0446\n",
      "(437, '0447', 3.0, 140655862.84, 119921599.05333328, 1.1728984932684685)\n",
      "Process end: 0447\n",
      "(438, '0448', 2.0, 299596873.81333333, 181172784.76666662, 1.653652750324425)\n",
      "Process end: 0448\n",
      "(439, '0449', 6.0, 394966964.8000001, 105788891.72666663, 3.73353911127551)\n",
      "Process end: 0449\n",
      "(440, '0450', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0450\n",
      "(441, '0451', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0451\n",
      "(442, '0452', 6.0, 152834514.27999997, 113257745.87041679, 1.349439838356528)\n",
      "Process end: 0452\n",
      "(443, '0453', 5.0, 557471343.7866666, 298034890.8800003, 1.8704902038168576)\n",
      "Process end: 0453\n",
      "(444, '0454', 2.0, 176824721.8, 22255808.031666674, 7.945104556455779)\n",
      "Process end: 0454\n",
      "(445, '0455', 11.0, 603316082.1333334, 41829051.86333331, 14.423374550886985)\n",
      "Process end: 0455\n",
      "(446, '0456', 3.0, 1395915875.8400002, 211597683.28, 6.597028163076966)\n",
      "Process end: 0456\n",
      "(447, '0457', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0457\n",
      "(448, '0458', 3.0, 6129482779.733335, 1142429637.3866665, 5.365304417132125)\n",
      "Process end: 0458\n",
      "(449, '0460', 7.0, 1460680150.186667, 167516285022.9335, 0.008719630751044266)\n",
      "Process end: 0460\n",
      "(450, '0461', 9.0, 832212480.2133334, 529976014.7466666, 1.5702832902940684)\n",
      "Process end: 0461\n",
      "(451, '0462', 7.0, 549579019.5200001, 334425929.5333335, 1.6433505030154114)\n",
      "Process end: 0462\n",
      "(452, '0463', 2.0, 198885433.49333334, 202519652.8, 0.9820549795715101)\n",
      "Process end: 0463\n",
      "(453, '0464', 9.0, 494926355.1733334, 74360470.07666665, 6.6557722760904765)\n",
      "Process end: 0464\n",
      "(454, '0465', 1.0, 907956194.5600002, 246100618.47999987, 3.689369820229802)\n",
      "Process end: 0465\n",
      "(455, '0466', 11.0, 1841192516.6933336, 232935549.7866667, 7.904300216860776)\n",
      "Process end: 0466\n",
      "(456, '0467', 4.0, 421700815.78666675, 122968730.57333332, 3.42933373240917)\n",
      "Process end: 0467\n",
      "(457, '0468', 6.0, 399070522.2933334, 30395207.08, 13.129389816064824)\n",
      "Process end: 0468\n",
      "(458, '0469', 2.0, 354960443.41333336, 164008921.22666675, 2.1642752159973306)\n",
      "Process end: 0469\n",
      "(459, '0470', 4.0, 712351284.9066668, 302415367.46999985, 2.355539306306361)\n",
      "Process end: 0470\n",
      "(460, '0471', 3.0, 870335183.3066669, 40778166.0475, 21.343166396764055)\n",
      "Process end: 0471\n",
      "(461, '0472', 3.0, 609668973.4400002, 250922689.51999998, 2.429708427748245)\n",
      "Process end: 0472\n",
      "(462, '0473', 2.0, 112783508.21333332, 107655373.7600001, 1.047634728060724)\n",
      "Process end: 0473\n",
      "(463, '0474', 3.0, 350072501.52666664, 105822258.10666664, 3.3081178552606656)\n",
      "Process end: 0474\n",
      "(464, '0475', 4.0, 2852.256769205729, 2864.6876847330727, 0.9956606384725315)\n",
      "Process end: 0475\n",
      "(465, '0476', 2.0, 799073555.4666665, 121663878.3466667, 6.5678783738078925)\n",
      "Process end: 0476\n",
      "(466, '0477', 4.0, 288602812.90666664, 92227807.43333332, 3.129238577153453)\n",
      "Process end: 0477\n",
      "(467, '0479', 4.0, 410040391.2, 73798884.15999998, 5.556186870129502)\n",
      "Process end: 0479\n",
      "(468, '0480', 3.0, 291974490.40000004, 108043479.45333332, 2.7023795593894318)\n",
      "Process end: 0480\n",
      "(469, '0481', 2.0, 265572797.86666667, 78553320.76666664, 3.380796575812744)\n",
      "Process end: 0481\n",
      "(470, '0482', 1.0, 248250448.16, 70843339.03999996, 3.504217213982975)\n",
      "Process end: 0482\n",
      "(471, '0483', 2.0, 420123463.8933332, 295960751.81333345, 1.4195242488041484)\n",
      "Process end: 0483\n",
      "(472, '0484', 2.0, 188821712.51, 45429375.24270834, 4.1563792480352655)\n",
      "Process end: 0484\n",
      "(473, '0485', 2.0, 850357140.48, 121385623.65999997, 7.00541888602758)\n",
      "Process end: 0485\n",
      "(474, '0486', 2.0, 405408727.41333336, 138351462.2199999, 2.930281479560163)\n",
      "Process end: 0486\n",
      "(475, '0487', 2.0, 295198899.6266667, 37897300.928333335, 7.789443902216419)\n",
      "Process end: 0487\n",
      "(476, '0488', 2.0, 276096121.8000001, 38342993.25333332, 7.200692965617593)\n",
      "Process end: 0488\n",
      "(477, '0489', 8.0, 377286745.1733334, 44207195.95999999, 8.53450975526052)\n",
      "Process end: 0489\n",
      "(478, '0490', 2.0, 59645341.733333334, 48668214.65916672, 1.2255502313171263)\n",
      "Process end: 0490\n",
      "(479, '0491', 1.0, 1070824196.1600001, 742229209.4133333, 1.4427136288618878)\n",
      "Process end: 0491\n",
      "(480, '0492', 2.0, 2633107018.24, 1707485774.7199993, 1.542096020490588)\n",
      "Process end: 0492\n",
      "(481, '0493', 2.0, 625077062.6133332, 399630382.61333364, 1.5641379880221289)\n",
      "Process end: 0493\n",
      "(482, '0494', 3.0, 4357066760.533334, 2003100465.7066662, 2.175161373643943)\n",
      "Process end: 0494\n",
      "(483, '0495', 3.0, 188883953.09333333, 22334907.628333326, 8.456894303593241)\n",
      "Process end: 0495\n",
      "(484, '0496', 10.0, 6119360324.266666, 2802857256.853333, 2.1832579269972)\n",
      "Process end: 0496\n",
      "(485, '0497', 2.0, 276934249.92, 214995985.3266667, 1.288090331078619)\n",
      "Process end: 0497\n",
      "(486, '0498', 1.0, 422686381.6533333, 88428239.91999996, 4.779993156436597)\n",
      "Process end: 0498\n",
      "(487, '0499', 5.0, 238628289.25333333, 72345406.93916678, 3.2984580410749382)\n",
      "Process end: 0499\n",
      "(488, '0500', 3.0, 301708117.8666667, 128122663.62666662, 2.354838007004025)\n",
      "Process end: 0500\n",
      "(489, '0501', 2.0, 163605253.02666664, 51197380.89000003, 3.195578566375889)\n",
      "Process end: 0501\n",
      "(490, '0502', 7.0, 369984046.0799999, 259344321.15999976, 1.4266132546304808)\n",
      "Process end: 0502\n",
      "(491, '0503', 7.0, 625523777.2800001, 117910659.78666659, 5.305065533614584)\n",
      "Process end: 0503\n",
      "(492, '0504', 2.0, 527220029.22666675, 145536474.50666666, 3.622597228727814)\n",
      "Process end: 0504\n",
      "(493, '0505', 15.0, 684615579.0933335, 888984268.1899998, 0.7701098923687734)\n",
      "Process end: 0505\n",
      "(494, '0506', 5.0, 494582244.69333327, 82153580.93333332, 6.020215297671333)\n",
      "Process end: 0506\n",
      "(495, '0507', 8.0, 212094317.38666666, 35826672.26333332, 5.920011655777861)\n",
      "Process end: 0507\n",
      "(496, '0508', 6.0, 328776262.2933334, 55218954.28666666, 5.954047238680157)\n",
      "Process end: 0508\n",
      "(497, '0509', 2.0, 202943798.08, 130072350.94499995, 1.5602377953929132)\n",
      "Process end: 0509\n",
      "(498, '0510', 3.0, 357639127.5733332, 288484034.48, 1.2397189612866688)\n",
      "Process end: 0510\n",
      "(499, '0511', 3.0, 223528440.64000005, 36112729.39666665, 6.189740968751938)\n",
      "Process end: 0511\n",
      "(500, '0512', 1.0, 198258722.24, 132165141.13333341, 1.5000833089565484)\n",
      "Process end: 0512\n",
      "(501, '0513', 2.0, 635124179.4133334, 165820232.34000003, 3.8301971384955382)\n",
      "Process end: 0513\n",
      "(502, '0514', 3.0, 1333288808.96, 453341915.7333333, 2.9410225763114144)\n",
      "Process end: 0514\n",
      "(503, '0515', 3.0, 228309031.20000005, 74322847.1991667, 3.071855288161778)\n",
      "Process end: 0515\n",
      "(504, '0516', 2.0, 533461180.79999995, 182806948.69999993, 2.918166867253226)\n",
      "Process end: 0516\n",
      "(505, '0517', 5.0, 91330745.09333333, 26105640.69333332, 3.4985061721414388)\n",
      "Process end: 0517\n",
      "(506, '0518', 2.0, 164099806.98666668, 58711781.93999999, 2.7950064120752987)\n",
      "Process end: 0518\n",
      "(507, '0519', 7.0, 481469534.72, 265190000.15999988, 1.8155644422093968)\n",
      "Process end: 0519\n",
      "(508, '0520', 2.0, 4220498613.813333, 273879765.8533333, 15.41004170448091)\n",
      "Process end: 0520\n",
      "(509, '0521', 2.0, 418808156.6, 54596437.09666664, 7.670979625620481)\n",
      "Process end: 0521\n",
      "(510, '0522', 3.0, 188103239.28000003, 89294650.28000006, 2.10654545026121)\n",
      "Process end: 0522\n",
      "(511, '0523', 6.0, 153709296.05333334, 101010863.905, 1.5217105379664493)\n",
      "Process end: 0523\n",
      "(512, '0524', 2.0, 555083049.5733334, 70980397.4033333, 7.820230230878733)\n",
      "Process end: 0524\n",
      "(513, '0525', 2.0, 156329619.14666668, 352824195.94666684, 0.4430807777431953)\n",
      "Process end: 0525\n",
      "(514, '0526', 2.0, 114953792.33333331, 82787460.78666668, 1.3885411056338037)\n",
      "Process end: 0526\n",
      "(515, '0527', 5.0, 89741530.83333334, 63822089.65833333, 1.4061202212863564)\n",
      "Process end: 0527\n",
      "(516, '0528', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0528\n",
      "(517, '0529', 2.0, 796108612.4800001, 136230839.4133334, 5.843820796439152)\n",
      "Process end: 0529\n",
      "(518, '0530', 6.0, 1350875878.6133332, 121263600502.6134, 0.01113999479657723)\n",
      "Process end: 0530\n",
      "(519, '0531', 2.0, 245062008.06000003, 95345695.18666667, 2.570247220707978)\n",
      "Process end: 0531\n",
      "(520, '0532', 2.0, 9977563340.800001, 2078930176.0000002, 4.7993739549240155)\n",
      "Process end: 0532\n",
      "(521, '0533', 2.0, 1067032970.24, 262666288.0066666, 4.062314118562935)\n",
      "Process end: 0533\n",
      "(522, '0534', 2.0, 403562016.0, 126986067.84000005, 3.1780023026500843)\n",
      "Process end: 0534\n",
      "(523, '0535', 3.0, 89526587.82666668, 26178102.701249998, 3.4199036060161765)\n",
      "Process end: 0535\n",
      "(524, '0536', 3.0, 420464343.7866667, 42101765.88, 9.986857676827372)\n",
      "Process end: 0536\n",
      "(525, '0537', 3.0, 366173254.40000004, 40983295.32666667, 8.934695257697872)\n",
      "Process end: 0537\n",
      "(526, '0538', 2.0, 850753874.3466666, 24625500.016666666, 34.547679185026574)\n",
      "Process end: 0538\n",
      "(527, '0539', 3.0, 634216451.9466667, 271129325.06333345, 2.3391658272247726)\n",
      "Process end: 0539\n",
      "(528, '0540', 2.0, 333432560.48, 30573033.493125, 10.906099996749733)\n",
      "Process end: 0540\n",
      "(529, '0541', 2.0, 720253332.5866668, 95319544.53333335, 7.556197798813374)\n",
      "Process end: 0541\n",
      "(530, '0542', 4.0, 1033209309.8666663, 479384988.91999984, 2.1552808989584133)\n",
      "Process end: 0542\n",
      "(531, '0543', 2.0, 385306483.9466667, 241630332.50666672, 1.5946114047417284)\n",
      "Process end: 0543\n",
      "(532, '0544', 4.0, 484836278.61333334, 36549203.16666669, 13.265303662092142)\n",
      "Process end: 0544\n",
      "(533, '0545', 6.0, 141475657.01333335, 50894787.98000001, 2.7797670965625922)\n",
      "Process end: 0545\n",
      "(534, '0546', 2.0, 82939232.74666667, 101371266.32666664, 0.8181729966694591)\n",
      "Process end: 0546\n",
      "(535, '0547', 2.0, 1291.8482666015623, 727.0241210683187, 1.7768987701580907)\n",
      "Process end: 0547\n",
      "(536, '0548', 8.0, 116557849.61333334, 11026624.140416665, 10.570583356161167)\n",
      "Process end: 0548\n",
      "(537, '0549', 2.0, 12529479833.173334, 1711421024.9066668, 7.321097293318946)\n",
      "Process end: 0549\n",
      "(538, '0550', 5.0, 827915805.8666668, 234032552.7466667, 3.537609602382371)\n",
      "Process end: 0550\n",
      "(539, '0551', 4.0, 655848512.7466667, 33343487.65333332, 19.66946348160739)\n",
      "Process end: 0551\n",
      "(540, '0552', 3.0, 165741802.86666667, 24603003.62333332, 6.736649126429356)\n",
      "Process end: 0552\n",
      "(541, '0553', 1.0, 305299035.73333335, 88361097.42666666, 3.4551295154149657)\n",
      "Process end: 0553\n",
      "(542, '0554', 12.0, 1163136881.3866668, 611583064.6933331, 1.901846124483352)\n",
      "Process end: 0554\n",
      "(543, '0555', 2.0, 356645015.25333333, 94883952.86666663, 3.758749551196503)\n",
      "Process end: 0555\n",
      "(544, '0556', 2.0, 290311647.41333336, 68099060.46333335, 4.263078601057149)\n",
      "Process end: 0556\n",
      "(545, '0557', 3.0, 481729157.1733334, 154483270.04666662, 3.1183257386240704)\n",
      "Process end: 0557\n",
      "(546, '0558', 2.0, 171691078.13333333, 18294296.623333327, 9.384951040662104)\n",
      "Process end: 0558\n",
      "(547, '0559', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0559\n",
      "(548, '0560', 8.0, 367748276.48, 270670526.13333327, 1.3586565250877958)\n",
      "Process end: 0560\n",
      "(549, '0561', 4.0, 311851314.34666663, 106190691.48666662, 2.9367104590878657)\n",
      "Process end: 0561\n",
      "(550, '0562', 2.0, 1080916230.08, 71060953.79666665, 15.211113450192725)\n",
      "Process end: 0562\n",
      "(551, '0563', 2.0, 255631380.69333327, 106158430.40333332, 2.40801771203756)\n",
      "Process end: 0563\n",
      "(552, '0564', 3.0, 136053567.54666668, 76713470.47999996, 1.7735290385817877)\n",
      "Process end: 0564\n",
      "(553, '0565', 8.0, 600431334.1866667, 70587042.80833331, 8.506254268464431)\n",
      "Process end: 0565\n",
      "(554, '0566', 3.0, 379826390.24, 104080401.20333348, 3.649355554442607)\n",
      "Process end: 0566\n",
      "(555, '0567', 3.0, 179825321.54666668, 66286810.4266667, 2.712837144964276)\n",
      "Process end: 0567\n",
      "(556, '0568', 3.0, 689113785.3866668, 271520166.18999976, 2.5379838081877515)\n",
      "Process end: 0568\n",
      "(557, '0569', 1.0, 165831118.21333334, 100307602.36666669, 1.653225820383489)\n",
      "Process end: 0569\n",
      "(558, '0570', 4.0, 667924860.7199999, 157180373.77333334, 4.2494164168562225)\n",
      "Process end: 0570\n",
      "(559, '0571', 6.0, 332724004.6933334, 199133123.84000003, 1.6708621764035163)\n",
      "Process end: 0571\n",
      "(560, '0572', 6.0, 557984988.16, 78707344.23666672, 7.0893636873604)\n",
      "Process end: 0572\n",
      "(561, '0573', 2.0, 236803676.26666665, 37660437.09333331, 6.28786319393478)\n",
      "Process end: 0573\n",
      "(562, '0574', 3.0, 21073285.411666665, 15665938.984166672, 1.3451658041669328)\n",
      "Process end: 0574\n",
      "(563, '0575', 2.0, 395329174.4533334, 80648252.16000009, 4.901893889393039)\n",
      "Process end: 0575\n",
      "(564, '0576', 2.0, 304997754.6666666, 89993127.77333334, 3.389122727625022)\n",
      "Process end: 0576\n",
      "(565, '0577', 3.0, 603545338.9866667, 120031496.75333337, 5.028224718608333)\n",
      "Process end: 0577\n",
      "(566, '0578', 3.0, 478011120.00000006, 85437922.18666667, 5.594835498874033)\n",
      "Process end: 0578\n",
      "(567, '0579', 2.0, 360860607.1466667, 43871541.61916667, 8.225391536936858)\n",
      "Process end: 0579\n",
      "(568, '0580', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0580\n",
      "(569, '0581', 15.0, 137456208.50666666, 73422304.76666665, 1.8721314857044786)\n",
      "Process end: 0581\n",
      "(570, '0582', 4.0, 299988990.1066667, 29566805.92333333, 10.146141280344505)\n",
      "Process end: 0582\n",
      "(571, '0583', 7.0, 235964763.9466667, 61232130.79666666, 3.8536102023010455)\n",
      "Process end: 0583\n",
      "(572, '0584', 12.0, 405395787.09333336, 342812326.81333333, 1.1825589553962501)\n",
      "Process end: 0584\n",
      "(573, '0585', 7.0, 775.6415718587241, 822.0653929138181, 0.9435278246046287)\n",
      "Process end: 0585\n",
      "(574, '0586', 2.0, 920154026.0266669, 159940132.89333332, 5.753115302463407)\n",
      "Process end: 0586\n",
      "(575, '0587', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0587\n",
      "(576, '0588', 4.0, 203882397.51999998, 68293311.39333339, 2.9853933476112338)\n",
      "Process end: 0588\n",
      "(577, '0589', 6.0, 1138868973.0133333, 316671897.0766667, 3.5963689343030385)\n",
      "Process end: 0589\n",
      "(578, '0590', 3.0, 254967776.96000004, 58884283.556666635, 4.3299801162501135)\n",
      "Process end: 0590\n",
      "(579, '0591', 1.0, 655637743.2, 137989812.4266667, 4.751348897937173)\n",
      "Process end: 0591\n",
      "(580, '0592', 3.0, 707955855.7866666, 152974525.08000007, 4.6279330196739075)\n",
      "Process end: 0592\n",
      "(581, '0593', 10.0, 380864524.8000001, 129480051.27, 2.9414919214528057)\n",
      "Process end: 0593\n",
      "(582, '0594', 6.0, 443158891.9466667, 128198029.38999997, 3.4568307645237106)\n",
      "Process end: 0594\n",
      "(583, '0595', 2.0, 112675290.10666665, 46436298.12, 2.4264485901846187)\n",
      "Process end: 0595\n",
      "(584, '0596', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0596\n",
      "(585, '0597', 11.0, 951938171.3066666, 343547030.79999995, 2.770910780657711)\n",
      "Process end: 0597\n",
      "(586, '0598', 2.0, 737843888.4266667, 70951820.63999997, 10.399224174533698)\n",
      "Process end: 0598\n",
      "(587, '0599', 1.0, 791992079.5733334, 74792553.06, 10.589183644232365)\n",
      "Process end: 0599\n",
      "(588, '0600', 2.0, 333620148.64000005, 54992748.95000003, 6.066620691090217)\n",
      "Process end: 0600\n",
      "(589, '0601', 4.0, 1024575487.8933331, 483335701.07166654, 2.1198009698468647)\n",
      "Process end: 0601\n",
      "(590, '0602', 4.0, 377475475.4133333, 119615969.03999996, 3.155728105894492)\n",
      "Process end: 0602\n",
      "(591, '0603', 2.0, 766376418.1333334, 577476158.24, 1.327113521827556)\n",
      "Process end: 0603\n",
      "(592, '0604', 6.0, 525266752.53333336, 168688288.2299998, 3.1138305927744843)\n",
      "Process end: 0604\n",
      "(593, '0605', 8.0, 1327779332.906667, 165939412.2933333, 8.001591150386467)\n",
      "Process end: 0605\n",
      "(594, '0606', 3.0, 403408076.1600001, 332257737.38666683, 1.2141420071446873)\n",
      "Process end: 0606\n",
      "(595, '0607', 2.0, 419547782.82666665, 437641480.0533333, 0.9586563476010966)\n",
      "Process end: 0607\n",
      "(596, '0608', 3.0, 379440323.67999995, 31460629.63999999, 12.060798783174006)\n",
      "Process end: 0608\n",
      "(597, '0609', 3.0, 539975710.0799999, 41936704.21999998, 12.875969156929619)\n",
      "Process end: 0609\n",
      "(598, '0610', 2.0, 389867331.14666665, 68648440.92666662, 5.679186968909325)\n",
      "Process end: 0610\n",
      "(599, '0611', 2.0, 893.5679211425781, 959.25211517334, 0.9315256198117504)\n",
      "Process end: 0611\n",
      "(600, '0612', 4.0, 154241488.44000003, 63068692.02500007, 2.4456110232769626)\n",
      "Process end: 0612\n",
      "(601, '0613', 2.0, 736431851.6266668, 496114816.69333315, 1.4843980200693794)\n",
      "Process end: 0613\n",
      "(602, '0614', 7.0, 372778133.12000006, 199334212.86666667, 1.8701161619924667)\n",
      "Process end: 0614\n",
      "(603, '0615', 2.0, 224742931.16000003, 60225171.760000005, 3.7317109207361105)\n",
      "Process end: 0615\n",
      "(604, '0616', 3.0, 482823781.8133333, 352222544.8866666, 1.370791815636588)\n",
      "Process end: 0616\n",
      "(605, '0617', 4.0, 365169844.5333333, 52357931.63999997, 6.974489501307074)\n",
      "Process end: 0617\n",
      "(606, '0618', 3.0, 10429665997.866667, 1655883422.4, 6.298550886360191)\n",
      "Process end: 0618\n",
      "(607, '0619', 5.0, 1103683801.6000001, 1426652120.3200004, 0.7736180291467566)\n",
      "Process end: 0619\n",
      "(608, '0620', 12.0, 88894364.81333333, 172861401.92000005, 0.514252249640284)\n",
      "Process end: 0620\n",
      "(609, '0621', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0621\n",
      "(610, '0622', 2.0, 397665963.7950001, 122311672.43333335, 3.2512511347741575)\n",
      "Process end: 0622\n",
      "(611, '0623', 3.0, 278578006.3466667, 58677908.88666668, 4.747578971921539)\n",
      "Process end: 0623\n",
      "(612, '0624', 3.0, 340303744.32, 85389018.07999997, 3.9853338517275536)\n",
      "Process end: 0624\n",
      "(613, '0625', 2.0, 137469614.08, 236617251.8266666, 0.5809788298137409)\n",
      "Process end: 0625\n",
      "(614, '0626', 3.0, 287891573.2266667, 47351414.17333335, 6.079893879680517)\n",
      "Process end: 0626\n",
      "(615, '0627', 2.0, 246547023.84000003, 127111431.79625002, 1.93961330114821)\n",
      "Process end: 0627\n",
      "(616, '0628', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0628\n",
      "(617, '0629', 2.0, 196093933.30666667, 89445264.63333331, 2.1923344305651358)\n",
      "Process end: 0629\n",
      "(618, '0630', 4.0, 127405502928.21335, 55864472152.746666, 2.280617680944995)\n",
      "Process end: 0630\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "c:\\Users\\toha2\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\numpy\\core\\fromnumeric.py:3464: RuntimeWarning: Mean of empty slice.\n",
      "  return _methods._mean(a, axis=axis, dtype=dtype,\n",
      "c:\\Users\\toha2\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\numpy\\core\\_methods.py:269: RuntimeWarning: Degrees of freedom <= 0 for slice\n",
      "  ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(619, '0631', 2.0, 721630802.9866667, 37774946.440000005, 19.1034235914238)\n",
      "Process end: 0631\n",
      "(620, '0632', 2.0, 299930487.3066666, 166586447.59999996, 1.8004495061137655)\n",
      "Process end: 0632\n",
      "(621, '0633', 2.0, 1061777369.5999999, 161871554683.30682, 0.0065593820463225394)\n",
      "Process end: 0633\n",
      "(622, '0634', 3.0, 541231066.1333334, 16134099.127500003, 33.54578782839038)\n",
      "Process end: 0634\n",
      "(623, '0635', 4.0, 420862855.04, 98720317.23999998, 4.263183778237219)\n",
      "Process end: 0635\n",
      "(624, '0636', 7.0, 426941485.97333336, 95252495.12, 4.4822078984436935)\n",
      "Process end: 0636\n",
      "(625, '0637', 13.0, 198940573.86666667, 184841404.64000002, 1.0762771158016593)\n",
      "Process end: 0637\n",
      "(626, '0638', 8.0, 267927130.45333332, 138536367.51999995, 1.9339840884355057)\n",
      "Process end: 0638\n",
      "(627, '0639', 2.0, 919986345.3866668, 84118877.37333336, 10.93674064744845)\n",
      "Process end: 0639\n",
      "(628, '0640', 11.0, 293063090.1333333, 171659117.45333332, 1.7072387093741437)\n",
      "Process end: 0640\n",
      "(629, '0641', 2.0, 191497961.54666674, 15596777.233333332, 12.278046847870502)\n",
      "Process end: 0641\n",
      "(630, '0642', 7.0, 312925945.44, 116480310.46666661, 2.6865136621485104)\n",
      "Process end: 0642\n",
      "(631, '0643', 2.0, 682652793.5999999, 222370575.14666665, 3.06988815021839)\n",
      "Process end: 0643\n",
      "(632, '0644', 2.0, 701207138.5600001, 45621408.65833333, 15.370133434753459)\n",
      "Process end: 0644\n",
      "(633, '0645', 10.0, 1116473491.6266668, 719699423.2533333, 1.5513052470985091)\n",
      "Process end: 0645\n",
      "(634, '0646', 2.0, 894709325.2266669, 541988266.6933335, 1.6507909491939412)\n",
      "Process end: 0646\n",
      "(635, '0647', 4.0, 287259363.6733334, 64294438.71500004, 4.467872640535473)\n",
      "Process end: 0647\n",
      "(636, '0648', 2.0, 1479498028.3733335, 1706547617.2800002, 0.8669538507993394)\n",
      "Process end: 0648\n",
      "(637, '0649', 6.0, 472031807.5733333, 273384641.0533332, 1.7266215313143618)\n",
      "Process end: 0649\n",
      "(638, '0650', 7.0, 475564390.2933334, 63001303.38666664, 7.548484947598403)\n",
      "Process end: 0650\n",
      "(639, '0651', 3.0, 228368211.89333332, 51028477.11083337, 4.4753091768213995)\n",
      "Process end: 0651\n",
      "(640, '0652', 6.0, 1221785227.9466667, 201125945.64666674, 6.074727077197041)\n",
      "Process end: 0652\n",
      "(641, '0653', 6.0, 4435992126.293333, 9510663907.41333, 0.46642297209510114)\n",
      "Process end: 0653\n",
      "(642, '0654', 1.0, 132156403.48000002, 15851815.021666663, 8.33698874856698)\n",
      "Process end: 0654\n",
      "(643, '0655', 2.0, 354061510.93333334, 149744711.0016666, 2.3644341664220296)\n",
      "Process end: 0655\n",
      "(644, '0656', 2.0, 787468165.0133334, 65664687.963333316, 11.992262347352506)\n",
      "Process end: 0656\n",
      "(645, '0657', 5.0, 391754081.68, 21219496.518958315, 18.46198760323987)\n",
      "Process end: 0657\n",
      "(646, '0658', 4.0, 157942480.2133333, 61361342.99666669, 2.5739736534435558)\n",
      "Process end: 0658\n",
      "(647, '0659', 7.0, 187375887.68000004, 43129287.029999994, 4.34451623440157)\n",
      "Process end: 0659\n",
      "(648, '0660', 4.0, 671514057.1733334, 184819955.4399999, 3.6333417329025073)\n",
      "Process end: 0660\n",
      "(649, '0661', 2.0, 144883651.78666666, 325941914.7066667, 0.4445075801835905)\n",
      "Process end: 0661\n",
      "(650, '0662', 3.0, 516118058.4533333, 177031780.0533334, 2.9153977794147763)\n",
      "Process end: 0662\n",
      "(651, '0663', 6.0, 154080779.93333334, 24417525.213333324, 6.310253745502295)\n",
      "Process end: 0663\n",
      "(652, '0664', 3.0, 890872758.9866668, 172648986.98666668, 5.160023088090677)\n",
      "Process end: 0664\n",
      "(653, '0665', 1.0, 729256955.6266668, 85142178.34666666, 8.565166757390315)\n",
      "Process end: 0665\n",
      "(654, '0666', 3.0, 475032163.9466667, 109852977.86333326, 4.324253863537941)\n",
      "Process end: 0666\n",
      "(655, '0667', 2.0, 1308250912.4266667, 485970796.7466663, 2.6920360671562125)\n",
      "Process end: 0667\n",
      "(656, '0668', 2.0, 464473442.7733333, 118982151.7533333, 3.9037236756001183)\n",
      "Process end: 0668\n",
      "(657, '0669', 7.0, 427985012.0800001, 115535525.51999995, 3.7043585525208274)\n",
      "Process end: 0669\n",
      "(658, '0670', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0670\n",
      "(659, '0671', 3.0, 1719291668.48, 238087592837.1204, 0.007221256882781773)\n",
      "Process end: 0671\n",
      "(660, '0672', 2.0, 302603540.64, 51751733.95999999, 5.847215493762753)\n",
      "Process end: 0672\n",
      "(661, '0673', 3.0, 156056957.33333337, 34408502.00000001, 4.53541852340254)\n",
      "Process end: 0673\n",
      "(662, '0674', 2.0, 303273892.69333327, 139001964.76000002, 2.1817957265349754)\n",
      "Process end: 0674\n",
      "(663, '0675', 2.0, 203402202.16, 54648950.89166669, 3.7219781686791062)\n",
      "Process end: 0675\n",
      "(664, '0676', 2.0, 390382973.8133334, 51649769.45999999, 7.558271370710847)\n",
      "Process end: 0676\n",
      "(665, '0677', 6.0, 382325740.5866667, 60264267.57999998, 6.3441531099525035)\n",
      "Process end: 0677\n",
      "(666, '0678', 2.0, 309254318.9333334, 159462588.7733333, 1.9393534327535609)\n",
      "Process end: 0678\n",
      "(667, '0679', 2.0, 490195990.3466667, 43120683.94666666, 11.368001281078014)\n",
      "Process end: 0679\n",
      "(668, '0680', 2.0, 392122863.8933334, 288983967.3666665, 1.3569017944715354)\n",
      "Process end: 0680\n",
      "(669, '0681', 6.0, 1743672239.7866669, 849028204.5866665, 2.0537271086718976)\n",
      "Process end: 0681\n",
      "(670, '0682', 5.0, 341384482.61333334, 121579051.3933334, 2.807921913363873)\n",
      "Process end: 0682\n",
      "(671, '0683', 3.0, 242119693.65333337, 36968956.52166666, 6.549270426700644)\n",
      "Process end: 0683\n",
      "(672, '0684', 5.0, 274603929.2266667, 133729245.82666671, 2.0534321234608233)\n",
      "Process end: 0684\n",
      "(673, '0686', 14.0, 1575217953.7066665, 664643114.633333, 2.370020720933331)\n",
      "Process end: 0686\n",
      "(674, '0687', 4.0, 237079309.65333334, 23176358.105000004, 10.22935996152849)\n",
      "Process end: 0687\n",
      "(675, '0688', 2.0, 506478282.34666663, 93643880.16000003, 5.408557200762051)\n",
      "Process end: 0688\n",
      "(676, '0689', 2.0, 167097017.89333332, 35735318.65333333, 4.675962722323361)\n",
      "Process end: 0689\n",
      "(677, '0690', 5.0, 250921393.32000005, 148379288.8266666, 1.6910809810735843)\n",
      "Process end: 0690\n",
      "(678, '0691', 2.0, 320027327.84000003, 62389405.520000026, 5.129513980340935)\n",
      "Process end: 0691\n",
      "(679, '0692', 4.0, 1306825264.0000002, 494924303.0933331, 2.640454824772584)\n",
      "Process end: 0692\n",
      "(680, '0693', 2.0, 1037.5403865559892, 760.8233495076496, 1.3637073405113171)\n",
      "Process end: 0693\n",
      "(681, '0694', 2.0, 589051383.5733334, 69128781.60333332, 8.521072842761196)\n",
      "Process end: 0694\n",
      "(682, '0695', 4.0, 779142112.2133332, 47309304.86333332, 16.469109289686493)\n",
      "Process end: 0695\n",
      "(683, '0696', 14.0, 552134635.0933335, 348282798.07999986, 1.5853054992584195)\n",
      "Process end: 0696\n",
      "(684, '0697', 1.0, 233820197.36000007, 49004333.61666668, 4.7714187726547586)\n",
      "Process end: 0697\n",
      "(685, '0698', 2.0, 183243910.25333336, 220710038.18666673, 0.8302472862532596)\n",
      "Process end: 0698\n",
      "(686, '0699', 3.0, 229886893.60000002, 31007066.174166683, 7.4140162861176675)\n",
      "Process end: 0699\n",
      "(687, '0700', 6.0, 266215795.52, 32937657.11166668, 8.082414441848842)\n",
      "Process end: 0700\n",
      "(688, '0701', 3.0, 384736984.8600001, 58425626.64208335, 6.585072458305106)\n",
      "Process end: 0701\n",
      "(689, '0702', 12.0, 603220918.6133335, 169155446.85333332, 3.5660744589345548)\n",
      "Process end: 0702\n",
      "(690, '0703', 2.0, 55189176.120000005, 40597684.646666646, 1.359416838677558)\n",
      "Process end: 0703\n",
      "(691, '0704', 4.0, 363594537.6, 131032129.53333327, 2.7748502515751694)\n",
      "Process end: 0704\n",
      "(692, '0705', 2.0, 486351263.3600001, 96033938.61333327, 5.064368601169456)\n",
      "Process end: 0705\n",
      "(693, '0706', 2.0, 675834700.6666667, 58696418.62, 11.514070475781727)\n",
      "Process end: 0706\n",
      "(694, '0707', 5.0, 202319687.53333336, 39815658.07333335, 5.081410111587168)\n",
      "Process end: 0707\n",
      "(695, '0708', 3.0, 275158852.79999995, 411886938.41333336, 0.6680446188946026)\n",
      "Process end: 0708\n",
      "(696, '0709', 2.0, 271575485.1466667, 22173080.00666669, 12.24798201535435)\n",
      "Process end: 0709\n",
      "(697, '0710', 3.0, 405795645.65333337, 300764166.8266667, 1.3492154000087295)\n",
      "Process end: 0710\n",
      "(698, '0711', 4.0, 190634138.37333336, 66297920.60666668, 2.8754165534742864)\n",
      "Process end: 0711\n",
      "(699, '0712', 2.0, 288372455.6666667, 106809998.51333328, 2.6998638674324917)\n",
      "Process end: 0712\n",
      "(700, '0713', 2.0, 292441650.88, 172152073.6400001, 1.6987402166966998)\n",
      "Process end: 0713\n",
      "(701, '0714', 3.0, 833563140.2666669, 204516862491.30695, 0.004075767299149222)\n",
      "Process end: 0714\n",
      "(702, '0715', 2.0, 194677631.73333335, 47904733.48999999, 4.0638495937770305)\n",
      "Process end: 0715\n",
      "(703, '0716', 2.0, 1113438044.16, 260793814.9333331, 4.269418906443885)\n",
      "Process end: 0716\n",
      "(704, '0717', 13.0, 96512247.28666669, 116125182.44000006, 0.8311052371136894)\n",
      "Process end: 0717\n",
      "(705, '0719', 2.0, 185675248.96, 84257426.30666666, 2.203666277251444)\n",
      "Process end: 0719\n",
      "(706, '0720', 2.0, 646300981.0133334, 246442775.8133333, 2.6225194829929626)\n",
      "Process end: 0720\n",
      "(707, '0721', 2.0, 452541492.5066667, 31533251.807083335, 14.351247225476824)\n",
      "Process end: 0721\n",
      "(708, '0722', 7.0, 230972405.01333335, 44136561.60833334, 5.233130914523343)\n",
      "Process end: 0722\n",
      "(709, '0723', 2.0, 365305613.8666667, 123606728.8766666, 2.9553861443187652)\n",
      "Process end: 0723\n",
      "(710, '0724', 3.0, 409295614.9333332, 120116014.57666662, 3.407502458151336)\n",
      "Process end: 0724\n",
      "(711, '0725', 3.0, 428199229.1733334, 70083916.72000001, 6.109807345443882)\n",
      "Process end: 0725\n",
      "(712, '0726', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0726\n",
      "(713, '0727', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0727\n",
      "(714, '0728', 3.0, 1015900455.2533336, 139307510.2666667, 7.292503134315341)\n",
      "Process end: 0728\n",
      "(715, '0729', 3.0, 360627450.05333334, 22755094.16416666, 15.848207326745655)\n",
      "Process end: 0729\n",
      "(716, '0730', 1.0, 462499765.78666675, 83494509.78666665, 5.539283564492812)\n",
      "Process end: 0730\n",
      "(717, '0731', 3.0, 1436137314.1333337, 247194083.96000007, 5.809756006805258)\n",
      "Process end: 0731\n",
      "(718, '0732', 5.0, 406874374.9333334, 85442834.80333333, 4.761948452083196)\n",
      "Process end: 0732\n",
      "(719, '0733', 2.0, 221197568.32, 44039477.46666668, 5.022711009398865)\n",
      "Process end: 0733\n",
      "(720, '0734', 2.0, 9968374021.120003, 1794608207.5999997, 5.554624111772621)\n",
      "Process end: 0734\n",
      "(721, '0735', 2.0, 210838413.49333334, 41958045.21570313, 5.024981798113545)\n",
      "Process end: 0735\n",
      "(722, '0736', 2.0, 593118507.0933335, 244864270.69333342, 2.4222337763444126)\n",
      "Process end: 0736\n",
      "(723, '0737', 2.0, 196772975.68, 179423295.14, 1.0966969229188577)\n",
      "Process end: 0737\n",
      "(724, '0738', 3.0, 290969374.1333334, 24629876.336666677, 11.813675803973288)\n",
      "Process end: 0738\n",
      "(725, '0739', 4.0, 320154427.4133334, 59717512.188333295, 5.361148106834236)\n",
      "Process end: 0739\n",
      "(726, '0740', 8.0, 487778855.6799998, 54705159.18666664, 8.916505553262093)\n",
      "Process end: 0740\n",
      "(727, '0741', 2.0, 423123515.9466667, 716915379.313333, 0.5902000824029436)\n",
      "Process end: 0741\n",
      "(728, '0742', 3.0, 190419508.77333337, 22050069.924999993, 8.635778000750872)\n",
      "Process end: 0742\n",
      "(729, '0743', 3.0, 2532837537.28, 389043357.3866666, 6.510424838747822)\n",
      "Process end: 0743\n",
      "(730, '0744', 2.0, 432898880.96000004, 52309242.31750001, 8.275762786477488)\n",
      "Process end: 0744\n",
      "(731, '0745', 2.0, 108171714.04, 22016611.376666676, 4.913186329602064)\n",
      "Process end: 0745\n",
      "(732, '0746', 2.0, 1109680722.3466668, 207752543.29333326, 5.341358063568294)\n",
      "Process end: 0746\n",
      "(733, '0747', 3.0, 84873451.06, 29680794.784999985, 2.859541049180164)\n",
      "Process end: 0747\n",
      "(734, '0748', 3.0, 500280061.0133333, 30164853.907083318, 16.584866034967185)\n",
      "Process end: 0748\n",
      "(735, '0749', 2.0, 4043772996.2666674, 2233187423.3599997, 1.810762927449459)\n",
      "Process end: 0749\n",
      "(736, '0750', 8.0, 111313276.41333336, 82165983.21333331, 1.3547367421420966)\n",
      "Process end: 0750\n",
      "(737, '0751', 3.0, 545808074.6666667, 173872946.77999994, 3.1391201723708826)\n",
      "Process end: 0751\n",
      "(738, '0752', 2.0, 1091.575505981445, 739.2623979568488, 1.4765738241229485)\n",
      "Process end: 0752\n",
      "(739, '0753', 4.0, 219977802.26666668, 89518844.07166663, 2.4573351515861592)\n",
      "Process end: 0753\n",
      "(740, '0754', 2.0, 925.7384282430012, 824.8832293701171, 1.1222660314598678)\n",
      "Process end: 0754\n",
      "(741, '0755', 3.0, 332249028.50666666, 17810826.207500007, 18.654329935955417)\n",
      "Process end: 0755\n",
      "(742, '0756', 3.0, 407324220.37333333, 422962600.64, 0.9630265648948544)\n",
      "Process end: 0756\n",
      "(743, '0757', 2.0, 384115391.9466667, 39192545.90666668, 9.800725700785067)\n",
      "Process end: 0757\n",
      "(744, '0758', 2.0, 329294031.5733334, 275432081.0733333, 1.1955543823729793)\n",
      "Process end: 0758\n",
      "(745, '0759', 5.0, 370178528.98666674, 56640305.67333333, 6.535602599350898)\n",
      "Process end: 0759\n",
      "(746, '0760', 5.0, 178547497.19333336, 12023896.97666666, 14.849386811931204)\n",
      "Process end: 0760\n",
      "(747, '0761', 7.0, 329658428.84000003, 89534480.78916687, 3.681915904736968)\n",
      "Process end: 0761\n",
      "(748, '0762', 2.0, 380797244.3733334, 34152117.71333336, 11.150033142005304)\n",
      "Process end: 0762\n",
      "(749, '0763', 3.0, 745179547.0933335, 233845603.41333324, 3.1866305639973618)\n",
      "Process end: 0763\n",
      "(750, '0764', 10.0, 953774687.2533333, 251181441.96000013, 3.797154279436054)\n",
      "Process end: 0764\n",
      "(751, '0765', 3.0, 958228879.2733335, 69618952.48583332, 13.76390831890673)\n",
      "Process end: 0765\n",
      "(752, '0766', 4.0, 313210487.25333333, 273371488.1950002, 1.145732092696936)\n",
      "Process end: 0766\n",
      "(753, '0767', 2.0, 1441658475.5200002, 1248980575.2533336, 1.1542681320144514)\n",
      "Process end: 0767\n",
      "(754, '0768', 3.0, 422436146.24, 69933412.3933334, 6.040548169794013)\n",
      "Process end: 0768\n",
      "(755, '0769', 2.0, 1049062644.9066668, 333412820.9066667, 3.14643762664524)\n",
      "Process end: 0769\n",
      "(756, '0770', 4.0, 758553142.08, 161932433.50666654, 4.684380550909039)\n",
      "Process end: 0770\n",
      "(757, '0771', 2.0, 279724597.12, 260462203.5733333, 1.0739546593801406)\n",
      "Process end: 0771\n",
      "(758, '0772', 4.0, 447520002.66666657, 216979903.9600001, 2.062495164294875)\n",
      "Process end: 0772\n",
      "(759, '0774', 3.0, 5728978551.466667, 1685336562.0266674, 3.399308292806156)\n",
      "Process end: 0774\n",
      "(760, '0775', 6.0, 131762704.69333336, 91576310.97749998, 1.4388295759774279)\n",
      "Process end: 0775\n",
      "(761, '0776', 10.0, 1184534889.6, 594778972.8133333, 1.991554751838473)\n",
      "Process end: 0776\n",
      "(762, '0778', 9.0, 436358624.6933334, 96103827.72500004, 4.540491622685086)\n",
      "Process end: 0778\n",
      "(763, '0779', 15.0, 126403779.85333334, 63927555.08666668, 1.977297265349309)\n",
      "Process end: 0779\n",
      "(764, '0780', 2.0, 137661957.24083334, 104369280.03999999, 1.3189892388648632)\n",
      "Process end: 0780\n",
      "(765, '0781', 3.0, 536400616.74666655, 123432416.72, 4.345702944174409)\n",
      "Process end: 0781\n",
      "(766, '0782', 2.0, 682178363.7333333, 238765505.96000004, 2.85710601701243)\n",
      "Process end: 0782\n",
      "(767, '0783', 2.0, 415804192.6933334, 133910236.18666673, 3.1050964028897328)\n",
      "Process end: 0783\n",
      "(768, '0784', 2.0, 395251.14968750003, 350100.30515624996, 1.1289654532323221)\n",
      "Process end: 0784\n",
      "(769, '0785', 2.0, 9931792711.68, 1579738814.24, 6.286984039483836)\n",
      "Process end: 0785\n",
      "(770, '0786', 2.0, 515330890.5600001, 33869673.593333334, 15.215112396637746)\n",
      "Process end: 0786\n",
      "(771, '0787', 3.0, 640533307.0133332, 47297256.789999984, 13.542715803948287)\n",
      "Process end: 0787\n",
      "(772, '0788', 9.0, 368536763.0266667, 205507984.83666658, 1.7932965637299785)\n",
      "Process end: 0788\n",
      "(773, '0789', 2.0, 6680939683.84, 1567306911.3599994, 4.26268756643378)\n",
      "Process end: 0789\n",
      "(774, '0790', 15.0, 93242982.89333335, 50034265.893333346, 1.8635825114755447)\n",
      "Process end: 0790\n",
      "(775, '0791', 2.0, 288313516.5866666, 148875876.5666667, 1.9366033183862372)\n",
      "Process end: 0791\n",
      "(776, '0792', 3.0, 8077002874.88, 2292970267.28, 3.522506589002228)\n",
      "Process end: 0792\n",
      "(777, '0793', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0793\n",
      "(778, '0794', 2.0, 5454389602.986667, 5590076586.026668, 0.975727169216398)\n",
      "Process end: 0794\n",
      "(779, '0795', 2.0, 106039744.96000001, 41867233.273333326, 2.5327621786639614)\n",
      "Process end: 0795\n",
      "(780, '0796', 3.0, 209160689.90666664, 188952071.01333338, 1.1069510314703417)\n",
      "Process end: 0796\n",
      "(781, '0797', 4.0, 665221105.28, 365814951.8133333, 1.8184634115760434)\n",
      "Process end: 0797\n",
      "(782, '0798', 2.0, 621854470.4000001, 139002924.39333332, 4.473679047502289)\n",
      "Process end: 0798\n",
      "(783, '0799', 5.0, 423245668.2666667, 195023356.34666666, 2.170230664650854)\n",
      "Process end: 0799\n",
      "(784, '0800', 2.0, 76448818.81333333, 25857383.904166657, 2.9565565912108522)\n",
      "Process end: 0800\n",
      "(785, '0801', 3.0, 156212229.22666666, 57666319.163333334, 2.7088989117584075)\n",
      "Process end: 0801\n",
      "(786, '0802', 2.0, 592504639.1466668, 354220576.0000001, 1.6726996659467535)\n",
      "Process end: 0802\n",
      "(787, '0803', 2.0, 7526742657.706668, 1844343549.4399989, 4.080987330148998)\n",
      "Process end: 0803\n",
      "(788, '0804', 2.0, 373842488.1666666, 190108285.52, 1.966471304204872)\n",
      "Process end: 0804\n",
      "(789, '0805', 2.0, 104479728.34000002, 101249546.86000001, 1.0319031697442207)\n",
      "Process end: 0805\n",
      "(790, '0806', 9.0, 985493038.72, 80552599.17333329, 12.234155680059605)\n",
      "Process end: 0806\n",
      "(791, '0807', 4.0, 1364700474.4533334, 204867769.73333332, 6.66137224137159)\n",
      "Process end: 0807\n",
      "(792, '0808', 1.0, 285138727.56000006, 184719618.92000008, 1.5436299036730383)\n",
      "Process end: 0808\n",
      "(793, '0809', 6.0, 417102541.0666667, 80424822.2066667, 5.186241381980844)\n",
      "Process end: 0809\n",
      "(794, '0810', 2.0, 338805522.02666664, 77944923.85, 4.3467297842086055)\n",
      "Process end: 0810\n",
      "(795, '0811', 3.0, 58849641.81333334, 55029102.023333386, 1.0694276237395255)\n",
      "Process end: 0811\n",
      "(796, '0812', 3.0, 13360928909.653336, 2303482436.2666655, 5.800317249784574)\n",
      "Process end: 0812\n",
      "(797, '0813', 6.0, 13540010598.400002, 3214390224.6399994, 4.212310781251345)\n",
      "Process end: 0813\n",
      "(798, '0814', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0814\n",
      "(799, '0815', 3.0, 1958178556.586667, 2177521645.2266665, 0.8992693876909007)\n",
      "Process end: 0815\n",
      "(800, '0816', 3.0, 269906837.09333336, 30588529.568333313, 8.82379247718902)\n",
      "Process end: 0816\n",
      "(801, '0817', 11.0, 46517331.16000001, 123559918.49999993, 0.3764758970766077)\n",
      "Process end: 0817\n",
      "(802, '0818', 1.0, 189633064.74666667, 84679137.92666666, 2.239430742798676)\n",
      "Process end: 0818\n",
      "(803, '0819', 4.0, 989046966.613333, 223956106.55999988, 4.416253621324491)\n",
      "Process end: 0819\n",
      "(804, '0820', 4.0, 194742561.4933333, 38157759.30333336, 5.10361627749775)\n",
      "Process end: 0820\n",
      "(805, '0821', 2.0, 197521984.26666665, 131199145.21, 1.5055127375297224)\n",
      "Process end: 0821\n",
      "(806, '0822', 10.0, 35062083.27666667, 28456435.16666668, 1.232131961410884)\n",
      "Process end: 0822\n",
      "(807, '0823', 5.0, 115935193.54666665, 108248448.64333333, 1.0710102084572157)\n",
      "Process end: 0823\n",
      "(808, '0824', 3.0, 501703910.2933334, 62503090.36708334, 8.026865669310185)\n",
      "Process end: 0824\n",
      "(809, '0825', 1.0, 249483328.69333336, 37492776.87083333, 6.654170470030278)\n",
      "Process end: 0825\n",
      "(810, '0826', 9.0, 30102643.580000006, 4336588.603749998, 6.941549298443761)\n",
      "Process end: 0826\n",
      "(811, '0827', 2.0, 149633624.79999998, 81262632.32666664, 1.8413583281241697)\n",
      "Process end: 0827\n",
      "(812, '0828', 8.0, 474754681.2800001, 51278887.30999999, 9.258287497736273)\n",
      "Process end: 0828\n",
      "(813, '0829', 2.0, 406499294.2933334, 69522649.68666665, 5.8470052008287245)\n",
      "Process end: 0829\n",
      "(814, '0830', 4.0, 791559325.8666667, 301425993.44000006, 2.626048659019281)\n",
      "Process end: 0830\n",
      "(815, '0831', 2.0, 278036749.7066667, 58365736.653333336, 4.763698115524217)\n",
      "Process end: 0831\n",
      "(816, '0832', 2.0, 159292512.53333336, 53198569.65333333, 2.9943006658140923)\n",
      "Process end: 0832\n",
      "(817, '0833', 7.0, 679571869.44, 128187574.7, 5.3013864333607685)\n",
      "Process end: 0833\n",
      "(818, '0834', 3.0, 6919484470.613335, 1476952352.6399999, 4.684974744273234)\n",
      "Process end: 0834\n",
      "(819, '0835', 6.0, 445365156.5866667, 230525718.4799999, 1.9319543152201735)\n",
      "Process end: 0835\n",
      "(820, '0836', 2.0, 999791299.0400002, 84051890.35583329, 11.894929368124718)\n",
      "Process end: 0836\n",
      "(821, '0837', 3.0, 637958615.7333335, 270948440.8266667, 2.3545387963367297)\n",
      "Process end: 0837\n",
      "(822, '0838', 3.0, 340475006.8266667, 83766895.38666666, 4.064553249288272)\n",
      "Process end: 0838\n",
      "(823, '0839', 8.0, 228638988.29333332, 91928125.92666665, 2.487149454952713)\n",
      "Process end: 0839\n",
      "(824, '0840', 3.0, 154722391.9466667, 253064769.29333335, 0.6113944362098238)\n",
      "Process end: 0840\n",
      "(825, '0841', 3.0, 2040376715.9466667, 1603156373.7599995, 1.2727247006860738)\n",
      "Process end: 0841\n",
      "(826, '0842', 7.0, 859521917.8666668, 43746783.08666668, 19.647659947106725)\n",
      "Process end: 0842\n",
      "(827, '0843', 2.0, 303445628.6933333, 23556255.450000003, 12.881742997626276)\n",
      "Process end: 0843\n",
      "(828, '0844', 2.0, 530204656.2133333, 158838509.2399999, 3.338010780573438)\n",
      "Process end: 0844\n",
      "(829, '0845', 3.0, 314071599.36, 161658021.08666667, 1.9428148213667833)\n",
      "Process end: 0845\n",
      "(830, '0846', 10.0, 287764126.5066667, 113624561.6666667, 2.532587341026339)\n",
      "Process end: 0846\n",
      "(831, '0847', 3.0, 509088458.34666663, 185129995.46, 2.7498972118576135)\n",
      "Process end: 0847\n",
      "(832, '0848', 3.0, 96046236.90666667, 94093865.48833333, 1.0207491892080405)\n",
      "Process end: 0848\n",
      "(833, '0849', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0849\n",
      "(834, '0850', 1.0, 278243724.05333334, 432206683.4933333, 0.6437746908595068)\n",
      "Process end: 0850\n",
      "(835, '0851', 8.0, 620774651.9466667, 132165749.95999998, 4.696940411071283)\n",
      "Process end: 0851\n",
      "(836, '0852', 5.0, 600840539.9466667, 90173072.44666664, 6.663192499091535)\n",
      "Process end: 0852\n",
      "(837, '0853', 13.0, 688829676.9066668, 566711513.2800002, 1.215485587931457)\n",
      "Process end: 0853\n",
      "(838, '0854', 2.0, 404836742.9333334, 25733896.440624986, 15.73165353592685)\n",
      "Process end: 0854\n",
      "(839, '0855', 10.0, 768941425.4666668, 244459919.50666666, 3.145470337298778)\n",
      "Process end: 0855\n",
      "(840, '0856', 9.0, 1908.222784016927, 1387.9124916585286, 1.374886958281237)\n",
      "Process end: 0856\n",
      "(841, '0857', 3.0, 463492442.48, 66416648.823333345, 6.978558097878117)\n",
      "Process end: 0857\n",
      "(842, '0858', 2.0, 167375737.28, 19739592.573333334, 8.479189054089785)\n",
      "Process end: 0858\n",
      "(843, '0859', 2.0, 186700546.82666668, 116323828.77333333, 1.6050068914982867)\n",
      "Process end: 0859\n",
      "(844, '0860', 7.0, 1725656033.28, 2084768286.7199998, 0.8277447639013172)\n",
      "Process end: 0860\n",
      "(845, '0861', 3.0, 8181230272.853334, 2200910331.0933332, 3.7172029033955205)\n",
      "Process end: 0861\n",
      "(846, '0862', 6.0, 260209833.92000005, 90033834.6333333, 2.8901338588955574)\n",
      "Process end: 0862\n",
      "(847, '0863', 6.0, 787530560.0, 194337021.70666662, 4.052395951548043)\n",
      "Process end: 0863\n",
      "(848, '0864', 8.0, 3398230150.826667, 1309210169.6, 2.5956337872512254)\n",
      "Process end: 0864\n",
      "(849, '0865', 2.0, 97387469.33333333, 44174932.18416667, 2.204586730938758)\n",
      "Process end: 0865\n",
      "(850, '0866', 2.0, 407992368.00000006, 78505392.61499996, 5.19699799478546)\n",
      "Process end: 0866\n",
      "(851, '0867', 2.0, 7552140301.653334, 907373969.6399999, 8.32307356651375)\n",
      "Process end: 0867\n",
      "(852, '0868', 3.0, 351721121.76, 144800003.58, 2.429013211768872)\n",
      "Process end: 0868\n",
      "(853, '0869', 2.0, 277863929.6, 105674722.96, 2.6294266198850327)\n",
      "Process end: 0869\n",
      "(854, '0870', 4.0, 356913953.81333333, 48488774.29, 7.360754299102605)\n",
      "Process end: 0870\n",
      "(855, '0871', 8.0, 699273714.3466668, 276329900.37333345, 2.530575639487143)\n",
      "Process end: 0871\n",
      "(856, '0872', 8.0, 998059726.1333334, 189842497.48666677, 5.257304024897957)\n",
      "Process end: 0872\n",
      "(857, '0873', 3.0, 164494629.3333333, 122672883.62666664, 1.3409208658854372)\n",
      "Process end: 0873\n",
      "(858, '0874', 2.0, 1907769219.4133334, 366258449.2133332, 5.208806031672247)\n",
      "Process end: 0874\n",
      "(859, '0875', 2.0, 1094931687.5200002, 360739430.433333, 3.0352426021317647)\n",
      "Process end: 0875\n",
      "(860, '0876', 3.0, 235953703.30666667, 257739097.22666678, 0.9154750126992138)\n",
      "Process end: 0876\n",
      "(861, '0877', 1.0, 377415321.86666656, 70480342.12666668, 5.354901955333572)\n",
      "Process end: 0877\n",
      "(862, '0878', 3.0, 162656014.39999998, 181118828.5066666, 0.898062425321026)\n",
      "Process end: 0878\n",
      "(863, '0880', 2.0, 301855650.56, 152396992.3733334, 1.9807192114430408)\n",
      "Process end: 0880\n",
      "(864, '0881', 3.0, 351435183.4666667, 141470444.67333335, 2.484159742893004)\n",
      "Process end: 0881\n",
      "(865, '0882', 1.0, 227271629.01333335, 24081741.329999994, 9.437508106201944)\n",
      "Process end: 0882\n",
      "(866, '0883', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0883\n",
      "(867, '0884', 2.0, 631402778.8800001, 172477113.82666656, 3.660791654448356)\n",
      "Process end: 0884\n",
      "(868, '0885', 1.0, 511884418.13333344, 142657042.52999988, 3.5882169506331056)\n",
      "Process end: 0885\n",
      "(869, '0886', 1.0, 324313442.4533333, 116682792.91333333, 2.7794453179931904)\n",
      "Process end: 0886\n",
      "(870, '0887', 2.0, 692806266.335, 22573097.47000002, 30.691679210429573)\n",
      "Process end: 0887\n",
      "(871, '0888', 4.0, 1030054918.9333334, 170446188.4466667, 6.04328514659418)\n",
      "Process end: 0888\n",
      "(872, '0889', 14.0, 16798129.72, 2881715.988958333, 5.829210714853303)\n",
      "Process end: 0889\n",
      "(873, '0890', 7.0, 246493571.8, 29683061.799999993, 8.304182818498868)\n",
      "Process end: 0890\n",
      "(874, '0891', 2.0, 199085046.5066667, 43237842.54000003, 4.604416751887883)\n",
      "Process end: 0891\n",
      "(875, '0892', 11.0, 602001620.0533334, 389757692.32000005, 1.5445535313747605)\n",
      "Process end: 0892\n",
      "(876, '0893', 2.0, 622432048.3733335, 121668800.72666664, 5.115790117563907)\n",
      "Process end: 0893\n",
      "(877, '0894', 11.0, 535393206.4, 225750938.7333333, 2.3716101000688616)\n",
      "Process end: 0894\n",
      "(878, '0895', 2.0, 972.1168056233724, 670.3050500488285, 1.4502603039505049)\n",
      "Process end: 0895\n",
      "(879, '0896', 2.0, 969337958.4, 114612285089.70673, 0.008457539762350098)\n",
      "Process end: 0896\n",
      "(880, '0897', 5.0, 763308601.6533332, 30804207654.61334, 0.024779361644740035)\n",
      "Process end: 0897\n",
      "(881, '0898', 8.0, 8084630541.653335, 1890396351.5733337, 4.276685434207848)\n",
      "Process end: 0898\n",
      "(882, '0899', 2.0, 379240427.1466667, 116049677.23333332, 3.2679145361529387)\n",
      "Process end: 0899\n",
      "(883, '0900', 2.0, 162279818.07999998, 75868974.39333335, 2.1389483563950695)\n",
      "Process end: 0900\n",
      "(884, '0901', 2.0, 135531791.33333334, 46875560.49333331, 2.891310309827843)\n",
      "Process end: 0901\n",
      "(885, '0902', 2.0, 363280404.9066667, 141030804.26666656, 2.5758940168827364)\n",
      "Process end: 0902\n",
      "(886, '0903', 4.0, 285938045.2266667, 58346042.76000001, 4.900727310725102)\n",
      "Process end: 0903\n",
      "(887, '0904', 2.0, 329550564.37333333, 42969566.2, 7.6693947255472485)\n",
      "Process end: 0904\n",
      "(888, '0905', 3.0, 448698090.02666676, 48567150.31166666, 9.23871561636347)\n",
      "Process end: 0905\n",
      "(889, '0906', 2.0, 865414762.4533334, 380735751.1466666, 2.273006303839219)\n",
      "Process end: 0906\n",
      "(890, '0907', 2.0, 496287791.68000007, 234011459.16666666, 2.1207841421412446)\n",
      "Process end: 0907\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "c:\\Users\\toha2\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\heartpy\\analysis.py:677: UserWarning: \n",
      "A theoretically impossible result was found during the iteration\n",
      "process for finding a smoothing spline with fp = s: s too small.\n",
      "There is an approximation returned but the corresponding weighted sum\n",
      "of squared residuals does not satisfy the condition abs(fp-s)/s < tol.\n",
      "  interp = UnivariateSpline(x, rrlist, k=3)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(891, '0908', 5.0, 317539432.85333335, 257021212.6533334, 1.2354600212770224)\n",
      "Process end: 0908\n",
      "(892, '0909', 7.0, 9642417909.76, 1856882749.7066674, 5.192798474369594)\n",
      "Process end: 0909\n",
      "(893, '0910', 3.0, 145450449.92000002, 242714198.94499987, 0.5992663410390743)\n",
      "Process end: 0910\n",
      "(894, '0911', 2.0, 1115010466.5600002, 173275297.31999993, 6.434907247631671)\n",
      "Process end: 0911\n",
      "(895, '0912', 15.0, 160841789.7066667, 530640880.1866668, 0.30310855366078543)\n",
      "Process end: 0912\n",
      "(896, '0914', 8.0, 1770374446.0800004, 149896652093.8668, 0.011810633668931939)\n",
      "Process end: 0914\n",
      "(897, '0915', 8.0, 970411762.0800002, 306198396.41333354, 3.1692254872884864)\n",
      "Process end: 0915\n",
      "(898, '0916', 2.0, 385406403.62666667, 161084779.5733333, 2.392568712248892)\n",
      "Process end: 0916\n",
      "(899, '0918', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0918\n",
      "(900, '0919', 6.0, 272817173.70666665, 106356002.30333345, 2.565131894752647)\n",
      "Process end: 0919\n",
      "(901, '0920', 14.0, 86845739.86666666, 42174024.000833355, 2.0592234657274013)\n",
      "Process end: 0920\n",
      "(902, '0921', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0921\n",
      "(903, '0922', 7.0, 1394336923.0933328, 157257467.04, 8.866586428857266)\n",
      "Process end: 0922\n",
      "(904, '0923', 3.0, 513141049.65333337, 139927665.0533333, 3.667187967852891)\n",
      "Process end: 0923\n",
      "(905, '0924', 1.0, 7873122802.346666, 4489860771.840001, 1.7535338404536234)\n",
      "Process end: 0924\n",
      "(906, '0925', 2.0, 346785.64916666667, 224079.58035156244, 1.5476004043857476)\n",
      "Process end: 0925\n",
      "(907, '0926', 2.0, 74646264.42, 40002353.410000026, 1.8660468211687637)\n",
      "Process end: 0926\n",
      "(908, '0927', 3.0, 727828867.3066667, 127057039.63999997, 5.728363177427065)\n",
      "Process end: 0927\n",
      "(909, '0928', 2.0, 504692016.15999997, 36778454.95333331, 13.722490974685673)\n",
      "Process end: 0928\n",
      "(910, '0929', 2.0, 465578268.11999995, 41966592.763333336, 11.094021159773083)\n",
      "Process end: 0929\n",
      "(911, '0930', 11.0, 818517827.6266668, 301994186.9200002, 2.7103761035092253)\n",
      "Process end: 0930\n",
      "(912, '0931', 2.0, 397712503.65333337, 32097614.64999999, 12.390718375495654)\n",
      "Process end: 0931\n",
      "(913, '0932', 2.0, 491946759.09333336, 124076303.85333335, 3.9648727743763867)\n",
      "Process end: 0932\n",
      "(914, '0933', 2.0, 312110318.4333334, 44273103.04000003, 7.049659883820359)\n",
      "Process end: 0933\n",
      "(915, '0934', 2.0, 152424191.09333333, 29191168.54833334, 5.2215857971206825)\n",
      "Process end: 0934\n",
      "(916, '0935', 8.0, 856263139.68, 338956334.4533332, 2.5261753584306845)\n",
      "Process end: 0935\n",
      "(917, '0936', 8.0, 415254094.9333334, 218304034.86666676, 1.9021824089827635)\n",
      "Process end: 0936\n",
      "(918, '0937', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0937\n",
      "(919, '0938', 3.0, 408441593.6, 75986891.87999994, 5.375158576626866)\n",
      "Process end: 0938\n",
      "(920, '0939', 6.0, 141824422.24, 326450188.8799999, 0.434444295243258)\n",
      "Process end: 0939\n",
      "(921, '0940', 4.0, 756608258.56, 127172876.50666665, 5.94944676367635)\n",
      "Process end: 0940\n",
      "(922, '0941', 2.0, 911602553.1733334, 348458987.0133334, 2.6160971223234717)\n",
      "Process end: 0941\n",
      "(923, '0942', 10.0, 84605819.74666668, 17710327.723333314, 4.777202379784239)\n",
      "Process end: 0942\n",
      "(924, '0943', 2.0, 516563767.46666676, 39794416.69666666, 12.980810132340405)\n",
      "Process end: 0943\n",
      "(925, '0944', 4.0, 734612221.0666666, 239979653.04666662, 3.0611437750675194)\n",
      "Process end: 0944\n",
      "(926, '0945', 3.0, 323794774.8266667, 115294758.17333327, 2.8084084650221137)\n",
      "Process end: 0945\n",
      "(927, '0946', 3.0, 244793121.17333338, 83709837.84000003, 2.924305284657487)\n",
      "Process end: 0946\n",
      "(928, '0947', 2.0, 1098177834.88, 73468578.24333331, 14.947585228106018)\n",
      "Process end: 0947\n",
      "(929, '0948', 12.0, 150495446.58666667, 104932176.57333331, 1.4342163814880067)\n",
      "Process end: 0948\n",
      "(930, '0949', 2.0, 261954758.64000005, 17359286.119999997, 15.090180369698295)\n",
      "Process end: 0949\n",
      "(931, '0950', 4.0, 356611171.62666667, 219462894.48666683, 1.6249269493177676)\n",
      "Process end: 0950\n",
      "(932, '0951', 3.0, 437869629.86666673, 98664891.5066666, 4.437947715546626)\n",
      "Process end: 0951\n",
      "(933, '0952', 4.0, 269872937.76000005, 142462245.13333336, 1.8943470777637992)\n",
      "Process end: 0952\n",
      "(934, '0953', 2.0, 1449499100.5866663, 1103395744.8533332, 1.313671098830763)\n",
      "Process end: 0953\n",
      "(935, '0954', 3.0, 179137653.65333337, 44003406.89, 4.070995095928431)\n",
      "Process end: 0954\n",
      "(936, '0955', 2.0, 827948475.5200002, 397266566.6666669, 2.084113149684464)\n",
      "Process end: 0955\n",
      "(937, '0957', 2.0, 180774274.05333337, 22913726.334166653, 7.8893442042982285)\n",
      "Process end: 0957\n",
      "(938, '0958', 3.0, 252401037.22666663, 138847543.95333323, 1.8178286056791817)\n",
      "Process end: 0958\n",
      "(939, '0959', 2.0, 9190831856.640001, 3195686518.6133313, 2.8760117123841287)\n",
      "Process end: 0959\n",
      "(940, '0960', 8.0, 320327198.9866667, 87421423.09999998, 3.6641727808554374)\n",
      "Process end: 0960\n",
      "(941, '0961', 2.0, 221204095.89333335, 89848383.10666667, 2.461970802866014)\n",
      "Process end: 0961\n",
      "(942, '0962', 10.0, 202704456.16000003, 136519711.94333324, 1.4847999111230092)\n",
      "Process end: 0962\n",
      "(943, '0964', 3.0, 65156365940.053345, 254901688214.18723, 0.255613708942187)\n",
      "Process end: 0964\n",
      "(944, '0965', 2.0, 1093613071.5733335, 87434990.44, 12.507727925284069)\n",
      "Process end: 0965\n",
      "(945, '0966', 2.0, 516118343.3600001, 59785058.954999976, 8.632898459604776)\n",
      "Process end: 0966\n",
      "(946, '0967', 3.0, 32278174.15500001, 2950128.9979166663, 10.941275509577492)\n",
      "Process end: 0967\n",
      "(947, '0968', 4.0, 1274449430.186667, 316122890.9466666, 4.031499985243652)\n",
      "Process end: 0968\n",
      "(948, '0969', 8.0, 449223200.0000001, 53745025.80499998, 8.35841444434116)\n",
      "Process end: 0969\n",
      "(949, '0970', 8.0, 1429.4463305664062, 911.0236051432287, 1.5690552061399907)\n",
      "Process end: 0970\n",
      "(950, '0971', 10.0, 716100680.9600002, 99927451.12666668, 7.1662058111767575)\n",
      "Process end: 0971\n",
      "(951, '0972', 5.0, 379177095.61333334, 90035013.72999996, 4.211440415285796)\n",
      "Process end: 0972\n",
      "(952, '0973', 2.0, 449853281.2800001, 83377831.10666671, 5.395358398139368)\n",
      "Process end: 0973\n",
      "(953, '0974', 2.0, 671014646.4000001, 152483924.1766666, 4.40055992802604)\n",
      "Process end: 0974\n",
      "(954, '0975', 4.0, 1754598384.426667, 137277971.45333326, 12.78135425408097)\n",
      "Process end: 0975\n",
      "(955, '0976', 3.0, 389868037.44000006, 45147802.43000002, 8.635371301725613)\n",
      "Process end: 0976\n",
      "(956, '0977', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0977\n",
      "(957, '0978', 4.0, 334850887.52, 232274955.15833318, 1.4416142596680068)\n",
      "Process end: 0978\n",
      "(958, '0979', 2.0, 199677901.65333337, 128575487.5866667, 1.5530013177569315)\n",
      "Process end: 0979\n",
      "(959, '0980', 2.0, 725326421.1199999, 15664394.425208323, 46.30414693546978)\n",
      "Process end: 0980\n",
      "(960, '0981', 3.0, 277009798.56000006, 59680002.95666666, 4.641584866561341)\n",
      "Process end: 0981\n",
      "(961, '0982', 2.0, 560647380.3199999, 94672186.07, 5.921986209396929)\n",
      "Process end: 0982\n",
      "(962, '0983', None, None, None, 'BadSignalWarning')\n",
      "Process end: 0983\n",
      "(963, '0984', 3.0, 7506140171.946668, 1982223756.8000004, 3.7867269758002458)\n",
      "Process end: 0984\n",
      "(964, '0985', 3.0, 9092559981.226667, 2176721678.506666, 4.177180790271999)\n",
      "Process end: 0985\n",
      "(965, '0986', 2.0, 274554286.40000004, 50428500.79333335, 5.444426903055903)\n",
      "Process end: 0986\n",
      "(966, '0989', 2.0, 12692362158.080002, 3344798825.7066655, 3.794656366335709)\n",
      "Process end: 0989\n",
      "(967, '0990', 8.0, 237556074.98666665, 64215610.68333332, 3.6993508659152647)\n",
      "Process end: 0990\n",
      "(968, '0991', 2.0, 7595712983.039999, 1600564780.9599998, 4.745645458026497)\n",
      "Process end: 0991\n",
      "(969, '0992', 1.0, 1075798710.6133332, 293250270.9866666, 3.668534412581147)\n",
      "Process end: 0992\n",
      "(970, '0993', 11.0, 298401589.44000006, 268721188.04, 1.110450543987555)\n",
      "Process end: 0993\n",
      "(971, '0994', 3.0, 9949659791.36, 1254756184.293333, 7.929556288231052)\n",
      "Process end: 0994\n",
      "(972, '0995', 2.0, 64074046.18666667, 15140508.146666663, 4.231961408823206)\n",
      "Process end: 0995\n",
      "(973, '0996', 4.0, 540382773.7866668, 220684518.29333338, 2.448666440064414)\n",
      "Process end: 0996\n",
      "(974, '0997', 4.0, 403407675.62666667, 59559098.9, 6.773233361102222)\n",
      "Process end: 0997\n",
      "(975, '0998', 8.0, 2279.7444901529952, 1022.9552361043293, 2.2285867550126977)\n",
      "Process end: 0998\n",
      "(976, '0999', 2.0, 127169054.88, 435366817.70666695, 0.29209634199931495)\n",
      "Process end: 0999\n",
      "(977, '1000', 2.0, 230744469.44, 71250241.96666667, 3.2385078712848476)\n",
      "Process end: 1000\n",
      "(978, '1001', 2.0, 1839341078.186667, 364791668.1066667, 5.0421685553652384)\n",
      "Process end: 1001\n",
      "(979, '1002', 2.0, 1163511499.0933337, 660112705.9200001, 1.7625952184509857)\n",
      "Process end: 1002\n",
      "(980, '1003', 2.0, 173466310.08, 89043351.77000001, 1.9481107419233887)\n",
      "Process end: 1003\n",
      "(981, '1004', 3.0, 265479402.55999997, 166361660.6133333, 1.5957967814293548)\n",
      "Process end: 1004\n",
      "(982, '1005', 14.0, 637712463.7866666, 368675216.88, 1.7297405265899266)\n",
      "Process end: 1005\n",
      "(983, '1006', 3.0, 421331374.1866665, 130400625.48666666, 3.2310533221310904)\n",
      "Process end: 1006\n",
      "(984, '1007', 3.0, 481183252.0, 89144719.28666663, 5.397776288381566)\n",
      "Process end: 1007\n",
      "(985, '1008', 4.0, 829118722.7733334, 75034241.94666664, 11.049871382223868)\n",
      "Process end: 1008\n",
      "(986, '1009', 3.0, 1167040313.1733332, 266567915.88, 4.378022423743959)\n",
      "Process end: 1009\n",
      "(987, '1010', 6.0, 810352711.4666667, 89469569.63999999, 9.057299758200411)\n",
      "Process end: 1010\n",
      "(988, '1011', 3.0, 175680438.72, 158926642.4400001, 1.1054184246440932)\n",
      "Process end: 1011\n",
      "(989, '1012', 3.0, 1023913937.9200001, 1607372031.1466672, 0.6370111698345032)\n",
      "Process end: 1012\n",
      "(990, '1013', 2.0, 357575209.37333333, 79988609.80666669, 4.470326590718308)\n",
      "Process end: 1013\n",
      "(991, '1014', 2.0, 11155180713.813334, 1924403298.026666, 5.7966959032195335)\n",
      "Process end: 1014\n",
      "(992, '1015', 2.0, 298497107.68000007, 378287033.01333356, 0.7890757060908268)\n",
      "Process end: 1015\n",
      "(993, '1016', 2.0, 149068493.74666667, 24490780.46166668, 6.086718795262192)\n",
      "Process end: 1016\n",
      "(994, '1017', 3.0, 703242128.0000002, 668611945.4933332, 1.0517941426863309)\n",
      "Process end: 1017\n",
      "(995, '1018', 2.0, 471426199.25333345, 68495993.07666664, 6.882536891255413)\n",
      "Process end: 1018\n",
      "(996, '1019', 4.0, 369334869.52000004, 156761989.38666666, 2.3560231084399197)\n",
      "Process end: 1019\n",
      "(997, '1020', 5.0, 301610806.93333334, 37701238.95333332, 8.000023747407026)\n",
      "Process end: 1020\n",
      "(998, '1021', 2.0, 503148309.7600001, 140667028.56000003, 3.5768745164428317)\n",
      "Process end: 1021\n",
      "(999, '1022', 8.0, 464465243.1999999, 191432033.84000006, 2.4262670875042915)\n",
      "Process end: 1022\n",
      "(1000, '1023', 2.0, 412607619.73333335, 130720232.12666667, 3.1564174345522926)\n",
      "Process end: 1023\n",
      "(1001, '1024', 2.0, 85394903.93333334, 62134570.62666665, 1.374354132845394)\n",
      "Process end: 1024\n",
      "(1002, '1025', 6.0, 175690306.29333335, 98044235.4533334, 1.7919493734739516)\n",
      "Process end: 1025\n",
      "(1003, '1026', 4.0, 235247059.6266667, 162866556.17333332, 1.4444160001535322)\n",
      "Process end: 1026\n",
      "(1004, '1027', 2.0, 92297357.04000002, 47875734.29999997, 1.927852562253026)\n",
      "Process end: 1027\n",
      "(1005, '1028', 7.0, 609459748.2666667, 195678443835.7336, 0.0031145982987185366)\n",
      "Process end: 1028\n",
      "(1006, '1029', 2.0, 9957715136.853334, 3576507473.4933333, 2.7842008469584414)\n",
      "Process end: 1029\n",
      "(1007, '1030', 5.0, 117108663.04, 123196239.8533333, 0.9505863424031397)\n",
      "Process end: 1030\n",
      "(1008, '1031', 2.0, 206372002.08000004, 22740998.989583332, 9.074887263067472)\n",
      "Process end: 1031\n",
      "(1009, '1032', 2.0, 682494917.44, 214236010.36666664, 3.1857152131983066)\n",
      "Process end: 1032\n",
      "(1010, '1033', 3.0, 400629183.54666674, 12925903.610624999, 30.99428833875509)\n",
      "Process end: 1033\n",
      "(1011, '1034', 6.0, 405207231.84, 229926409.33333322, 1.7623344487259631)\n",
      "Process end: 1034\n",
      "(1012, '1035', 6.0, 93867565.44000001, 9224485.126041666, 10.175913794364767)\n",
      "Process end: 1035\n",
      "(1013, '1036', 2.0, 266834408.21333334, 180605979.74666667, 1.4774394988893391)\n",
      "Process end: 1036\n",
      "(1014, '1037', 10.0, 584661893.1200001, 218726274.24, 2.6730300013178705)\n",
      "Process end: 1037\n",
      "(1015, '1038', 4.0, 313847459.26, 51291971.31000001, 6.118841823472898)\n",
      "Process end: 1038\n",
      "(1016, '1039', 2.0, 100589498.98666666, 49318972.02833332, 2.0395700650224193)\n",
      "Process end: 1039\n",
      "(1017, '1040', 3.0, 298520418.2933334, 21747641.460833352, 13.726565192412105)\n",
      "Process end: 1040\n",
      "(1018, '1041', 11.0, 109847911.18666665, 90436663.07083334, 1.2146391458586845)\n",
      "Process end: 1041\n",
      "(1019, '1042', 4.0, 888459006.44, 93535938.10333323, 9.498584442040668)\n",
      "Process end: 1042\n",
      "(1020, '1043', 2.0, 451924739.25333333, 98199617.26666668, 4.602102857754586)\n",
      "Process end: 1043\n",
      "(1021, '1044', 2.0, 1122.0398596191405, 875.187947794596, 1.2820558857632716)\n",
      "Process end: 1044\n",
      "(1022, '1045', 2.0, 508442665.6000001, 208107128.24000007, 2.4431775590773483)\n",
      "Process end: 1045\n",
      "(1023, '1046', 3.0, 225941540.80000004, 76788078.0333333, 2.942403906787718)\n",
      "Process end: 1046\n",
      "(1024, '1047', 4.0, 403080374.6666667, 59194214.83999999, 6.809455548252133)\n",
      "Process end: 1047\n",
      "(1025, '1048', 2.0, 899991630.08, 192326078.69333342, 4.679509072272248)\n",
      "Process end: 1048\n",
      "(1026, '1049', 6.0, 477313033.4933334, 78887126.10666667, 6.0505821044607195)\n",
      "Process end: 1049\n",
      "(1027, '1050', 3.0, 377511675.14666677, 71907333.60000001, 5.249974602683178)\n",
      "Process end: 1050\n",
      "(1028, '1051', 4.0, 247546069.33333337, 73095038.78666662, 3.386632984159366)\n",
      "Process end: 1051\n",
      "(1029, '1052', 2.0, 310135037.17333335, 95199992.68249997, 3.257721229114585)\n",
      "Process end: 1052\n",
      "(1030, '1053', 4.0, 105865845.78666668, 64572308.823333345, 1.639492960927112)\n",
      "Process end: 1053\n",
      "(1031, '1054', 5.0, 1866882718.7199993, 165285127.1816667, 11.294922601645144)\n",
      "Process end: 1054\n",
      "(1032, '1055', 6.0, 247863597.3866667, 20223114.819999985, 12.256450086587941)\n",
      "Process end: 1055\n",
      "(1033, '1056', 2.0, 596301345.1733334, 79979038.3666667, 7.455720365623415)\n",
      "Process end: 1056\n",
      "(1034, '1057', 3.0, 197365264.74666667, 72903850.36666667, 2.707199465515564)\n",
      "Process end: 1057\n",
      "(1035, '1058', 8.0, 198364241.30666667, 35813043.696666665, 5.538882508473571)\n",
      "Process end: 1058\n",
      "(1036, '1059', 2.0, 744981332.4266666, 704445266.0800003, 1.0575432447324629)\n",
      "Process end: 1059\n",
      "(1037, '1060', 2.0, 1220164919.253333, 57300789078.18667, 0.021294033448447342)\n",
      "Process end: 1060\n",
      "(1038, '1061', 2.0, 397137697.3333334, 77576911.03999995, 5.119277011797525)\n",
      "Process end: 1061\n",
      "(1039, '1062', 4.0, 598629086.72, 116567266.11999996, 5.135481912252642)\n",
      "Process end: 1062\n",
      "(1040, '1063', 7.0, 7709468095.1466675, 1713246117.4933329, 4.499918614394098)\n",
      "Process end: 1063\n",
      "(1041, '1064', 7.0, 757032881.7066667, 124679206.82333328, 6.071845506519461)\n",
      "Process end: 1064\n",
      "(1042, '1065', 3.0, 14578687016.960001, 3751776929.386665, 3.8858085891965075)\n",
      "Process end: 1065\n",
      "(1043, '1066', 2.0, 10336061317.12, 1404778212.5866666, 7.357788741674641)\n",
      "Process end: 1066\n",
      "(1044, '1067', 8.0, 308481207.0400001, 57126778.12500004, 5.3999405736659485)\n",
      "Process end: 1067\n",
      "(1045, '1068', 7.0, 241129009.50666666, 10639543.485833323, 22.663473280383954)\n",
      "Process end: 1068\n",
      "(1046, '1069', None, None, None, 'BadSignalWarning')\n",
      "Process end: 1069\n",
      "(1047, '1070', None, None, None, 'BadSignalWarning')\n",
      "Process end: 1070\n",
      "(1048, '1071', 3.0, 1026614885.5466669, 187752714.3466667, 5.467909687053178)\n",
      "Process end: 1071\n",
      "(1049, '1072', 2.0, 655895088.5333335, 75055361.79999998, 8.738817225091754)\n",
      "Process end: 1072\n",
      "(1050, '1073', 2.0, 386460900.53333336, 63823443.03999998, 6.0551559446758025)\n",
      "Process end: 1073\n",
      "(1051, '1074', 2.0, 186373008.04000002, 36361687.998333365, 5.125532347358088)\n",
      "Process end: 1074\n",
      "(1052, '1075', 4.0, 354243032.32, 43808155.39999999, 8.086234836539136)\n",
      "Process end: 1075\n",
      "(1053, '1076', 5.0, 451820377.92666674, 138073541.91999996, 3.272316851178137)\n",
      "Process end: 1076\n",
      "(1054, '1077', 5.0, 106638620.50666668, 76491719.31666665, 1.394119800931594)\n",
      "Process end: 1077\n",
      "(1055, '1078', 3.0, 11298046906.453335, 1824485744.5866673, 6.192455567260614)\n",
      "Process end: 1078\n",
      "(1056, '1079', 5.0, 463233686.61333334, 55950026.45333331, 8.279418545042269)\n",
      "Process end: 1079\n",
      "(1057, '1080', 4.0, 636629470.5866667, 320906106.3466666, 1.9838496619286277)\n",
      "Process end: 1080\n",
      "(1058, '1081', 2.0, 763377087.5733335, 416433040.96, 1.833132850874479)\n",
      "Process end: 1081\n",
      "(1059, '1082', 2.0, 413501300.9066667, 108477123.27999997, 3.811875613988598)\n",
      "Process end: 1082\n",
      "(1060, '1083', 8.0, 266323929.28, 69573760.71999998, 3.8279363731942313)\n",
      "Process end: 1083\n",
      "(1061, '1085', 2.0, 173500023.01333338, 80754363.11666669, 2.1484910080050543)\n",
      "Process end: 1085\n",
      "(1062, '1086', 2.0, 248784304.95999998, 81617489.97333334, 3.0481739274423236)\n",
      "Process end: 1086\n",
      "(1063, '1087', 2.0, 704848061.3333335, 74869481.41333328, 9.414357466189276)\n",
      "Process end: 1087\n",
      "(1064, '1088', 1.0, 324087408.1066667, 115789310.80666672, 2.7989406435607433)\n",
      "Process end: 1088\n",
      "(1065, '1089', 14.0, 1023272411.3066669, 1017863050.4533331, 1.0053144289410294)\n",
      "Process end: 1089\n",
      "(1066, '1090', 3.0, 328033612.74666667, 194801026.09333342, 1.6839419140918621)\n",
      "Process end: 1090\n",
      "(1067, '1092', 6.0, 958186868.6933334, 46079154.70833333, 20.794367317681004)\n",
      "Process end: 1092\n",
      "(1068, '1093', 2.0, 520482519.46666676, 66903940.072500005, 7.779549588598958)\n",
      "Process end: 1093\n",
      "(1069, '1094', 3.0, 572254377.6, 139858971.09333333, 4.09165299248564)\n",
      "Process end: 1094\n",
      "(1070, '1095', 2.0, 774.170399576823, 751.2667818196616, 1.0304866637410561)\n",
      "Process end: 1095\n",
      "(1071, '1096', 2.0, 335838204.16, 42580213.18333334, 7.8871893551592915)\n",
      "Process end: 1096\n",
      "(1072, '1097', 6.0, 844593998.5066668, 365416371.81333333, 2.311319534796632)\n",
      "Process end: 1097\n",
      "(1073, '1098', None, None, None, 'BadSignalWarning')\n",
      "Process end: 1098\n",
      "(1074, '1099', 2.0, 616944110.9333334, 326895212.39999986, 1.8872840210899757)\n",
      "Process end: 1099\n",
      "(1075, '1100', 2.0, 407197338.7733334, 57555900.53333335, 7.074814832190942)\n",
      "Process end: 1100\n",
      "(1076, '1101', None, None, None, 'BadSignalWarning')\n",
      "Process end: 1101\n",
      "(1077, '1102', 4.0, 705435086.7200001, 97442377.48000002, 7.23951021068621)\n",
      "Process end: 1102\n",
      "(1078, '1103', 2.0, 49240529.28, 20379816.18083334, 2.4161419731699727)\n",
      "Process end: 1103\n",
      "(1079, '1104', 3.0, 347990683.36, 44805738.06166667, 7.766654415580797)\n",
      "Process end: 1104\n",
      "(1080, '1105', 3.0, 202925554.61333334, 38626530.65999998, 5.253527851091078)\n",
      "Process end: 1105\n",
      "(1081, '1106', 3.0, 326587636.32000005, 23083642.733333316, 14.148011216981795)\n",
      "Process end: 1106\n",
      "(1082, '1107', 4.0, 270583172.16, 34316710.45583331, 7.884880822369298)\n",
      "Process end: 1107\n",
      "(1083, '1108', 2.0, 485349718.9333334, 255160612.4133334, 1.9021341669580172)\n",
      "Process end: 1108\n",
      "(1084, '1109', 9.0, 1069216967.4666667, 397337573.3066666, 2.6909535853067714)\n",
      "Process end: 1109\n",
      "(1085, '1110', 2.0, 351626191.4133334, 148010384.0, 2.3756859614210137)\n",
      "Process end: 1110\n",
      "(1086, '1111', 3.0, 512902706.9866667, 70543781.5916667, 7.270700484353615)\n",
      "Process end: 1111\n",
      "(1087, '1112', 2.0, 586894689.9200001, 54498872.42333331, 10.768932710408247)\n",
      "Process end: 1112\n",
      "(1088, '1113', 2.0, 554433802.08, 378362535.4666665, 1.465350689111357)\n",
      "Process end: 1113\n",
      "(1089, '1114', 2.0, 877891174.8266667, 1724683105.279999, 0.5090159300216156)\n",
      "Process end: 1114\n",
      "(1090, '1115', 2.0, 270317344.3733334, 19010574.473333333, 14.219314874072593)\n",
      "Process end: 1115\n",
      "(1091, '1116', 3.0, 201893009.97333336, 99316383.60666668, 2.032826837240791)\n",
      "Process end: 1116\n",
      "(1092, '1117', 3.0, 419318103.03999996, 52539085.44, 7.9810697032186475)\n",
      "Process end: 1117\n",
      "(1093, '1118', 8.0, 76438985.77333334, 117916261.90416667, 0.6482480409314291)\n",
      "Process end: 1118\n",
      "(1094, '1119', 2.0, 677296218.5600002, 34069161.90666666, 19.880037566391287)\n",
      "Process end: 1119\n",
      "(1095, '1120', 3.0, 7203549896.533333, 1517587220.9066668, 4.746712279396796)\n",
      "Process end: 1120\n",
      "(1096, '1121', 3.0, 305439190.9333334, 238584498.1866666, 1.2802139001267392)\n",
      "Process end: 1121\n"
     ]
    }
   ],
   "source": [
    "result = []\n",
    "result_metadata = []\n",
    "\n",
    "new_id = 0\n",
    "\n",
    "for id in ids:\n",
    "    new_id += 1 \n",
    "    try:\n",
    "        record = wfdb.rdrecord('D:\\\\Proga\\\\AML\\\\datasets\\\\Autonomic_Aging\\\\' + id)\n",
    "\n",
    "        channel_index = record.sig_name.index('NIBP')\n",
    "        signal = record.p_signal[:, channel_index].astype(np.float32)\n",
    "        fs = record.fs\n",
    "        five_minute_samples = 60 * 5 * fs\n",
    "\n",
    "        signal = signal[:five_minute_samples]\n",
    "\n",
    "        #signal = funcBPFilter(signal, order=2, f1=0.5, f2=4.0, fs=fs)\n",
    "        #signal = funcMedianFilter(signal,window_size = 5)\n",
    "\n",
    "        try:\n",
    "            wd, m = hp.process(signal, fs)\n",
    "            \n",
    "            # Вычисляем частотные характеристики с помощью scipy\n",
    "            n = len(signal)\n",
    "            yf = fft(signal)\n",
    "            xf = fftfreq(n, 1/fs)\n",
    "            \n",
    "            # Определяем границы для LF и HF\n",
    "            lf_band = (0.04, 0.15)\n",
    "            hf_band = (0.15, 0.4)\n",
    "            \n",
    "            # Вычисляем LF и HF\n",
    "            lf_mask = (xf >= lf_band[0]) & (xf <= lf_band[1])\n",
    "            hf_mask = (xf >= hf_band[0]) & (xf <= hf_band[1])\n",
    "            \n",
    "            lf = np.trapz(np.abs(yf[lf_mask])**2, xf[lf_mask])\n",
    "            hf = np.trapz(np.abs(yf[hf_mask])**2, xf[hf_mask])\n",
    "            lf_hf_ratio = lf / hf\n",
    "            \n",
    "            freq_features = {\n",
    "                'lf': lf,\n",
    "                'hf': hf,\n",
    "                'lf_hf_ratio': lf_hf_ratio\n",
    "            }\n",
    "\n",
    "            idx = int(subjects[subjects[\"ID\"] == id].index.to_list()[0])\n",
    "            age_group = age_groups[idx]\n",
    "\n",
    "            result_metadata.append({\n",
    "                'id': new_id,\n",
    "                'age_group': age_group,\n",
    "                'lf': freq_features['lf'],\n",
    "                'hf': freq_features['hf'],\n",
    "                'lf_hf_ratio': freq_features['lf_hf_ratio'],\n",
    "                **m\n",
    "            })\n",
    "\n",
    "            print((new_id, id, age_group, freq_features['lf'], freq_features['hf'], freq_features['lf_hf_ratio']))\n",
    "\n",
    "        except hp.exceptions.BadSignalWarning as e:\n",
    "            result_metadata.append({\n",
    "                'id': new_id,\n",
    "                'age_group': None,\n",
    "                'error': \"BadSignalWarning\"\n",
    "            })\n",
    "            print((new_id, id, None, None, None, \"BadSignalWarning\"))\n",
    "\n",
    "    except FileNotFoundError as e:\n",
    "        result_metadata.append({\n",
    "            'id': new_id,\n",
    "            'age_group': None,\n",
    "            'error': \"FileNotFound\"\n",
    "        })\n",
    "        print((new_id, id, None, None, None, \"FileNotFound\"))\n",
    "\n",
    "    print(f\"Process end: {id}\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_metadata = pd.DataFrame(result_metadata)\n",
    "\n",
    "metadata_path = 'D:\\\\Proga\\\\AML\\\\PPG_dataset\\\\dataset.csv'\n",
    "\n",
    "#df_metadata.to_csv(metadata_path, index=False)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>age_group</th>\n",
       "      <th>lf</th>\n",
       "      <th>hf</th>\n",
       "      <th>lf_hf_ratio</th>\n",
       "      <th>bpm</th>\n",
       "      <th>ibi</th>\n",
       "      <th>sdnn</th>\n",
       "      <th>sdsd</th>\n",
       "      <th>rmssd</th>\n",
       "      <th>pnn20</th>\n",
       "      <th>pnn50</th>\n",
       "      <th>hr_mad</th>\n",
       "      <th>sd1</th>\n",
       "      <th>sd2</th>\n",
       "      <th>s</th>\n",
       "      <th>sd1/sd2</th>\n",
       "      <th>breathingrate</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.772601e+08</td>\n",
       "      <td>1.121196e+08</td>\n",
       "      <td>4.256706</td>\n",
       "      <td>69.982942</td>\n",
       "      <td>857.351779</td>\n",
       "      <td>56.187352</td>\n",
       "      <td>32.28238</td>\n",
       "      <td>55.780042</td>\n",
       "      <td>0.706522</td>\n",
       "      <td>0.331522</td>\n",
       "      <td>40.0</td>\n",
       "      <td>39.440929</td>\n",
       "      <td>67.507515</td>\n",
       "      <td>8364.676182</td>\n",
       "      <td>0.584245</td>\n",
       "      <td>0.166667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.828486e+08</td>\n",
       "      <td>4.189216e+07</td>\n",
       "      <td>9.138907</td>\n",
       "      <td>65.715434</td>\n",
       "      <td>913.027523</td>\n",
       "      <td>73.718299</td>\n",
       "      <td>46.512425</td>\n",
       "      <td>78.898203</td>\n",
       "      <td>0.779141</td>\n",
       "      <td>0.503067</td>\n",
       "      <td>50.0</td>\n",
       "      <td>55.787767</td>\n",
       "      <td>87.910442</td>\n",
       "      <td>15407.398553</td>\n",
       "      <td>0.634598</td>\n",
       "      <td>0.133333</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>7.0</td>\n",
       "      <td>3.209086e+07</td>\n",
       "      <td>6.883203e+07</td>\n",
       "      <td>0.466220</td>\n",
       "      <td>92.792823</td>\n",
       "      <td>646.601732</td>\n",
       "      <td>8.369797</td>\n",
       "      <td>9.726426</td>\n",
       "      <td>12.848187</td>\n",
       "      <td>0.049892</td>\n",
       "      <td>0.006508</td>\n",
       "      <td>10.0</td>\n",
       "      <td>9.085028</td>\n",
       "      <td>7.580096</td>\n",
       "      <td>216.346967</td>\n",
       "      <td>1.198537</td>\n",
       "      <td>0.333333</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>4.0</td>\n",
       "      <td>3.996977e+08</td>\n",
       "      <td>3.649814e+07</td>\n",
       "      <td>10.951182</td>\n",
       "      <td>62.728278</td>\n",
       "      <td>956.506410</td>\n",
       "      <td>54.304814</td>\n",
       "      <td>22.233558</td>\n",
       "      <td>36.980050</td>\n",
       "      <td>0.517685</td>\n",
       "      <td>0.131833</td>\n",
       "      <td>30.0</td>\n",
       "      <td>26.147648</td>\n",
       "      <td>72.162114</td>\n",
       "      <td>5927.775575</td>\n",
       "      <td>0.362346</td>\n",
       "      <td>0.200000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.663444e+08</td>\n",
       "      <td>1.822726e+08</td>\n",
       "      <td>1.461242</td>\n",
       "      <td>65.202127</td>\n",
       "      <td>920.215385</td>\n",
       "      <td>79.770535</td>\n",
       "      <td>79.733137</td>\n",
       "      <td>117.900879</td>\n",
       "      <td>0.873457</td>\n",
       "      <td>0.629630</td>\n",
       "      <td>50.0</td>\n",
       "      <td>83.368465</td>\n",
       "      <td>76.207123</td>\n",
       "      <td>19959.389060</td>\n",
       "      <td>1.093972</td>\n",
       "      <td>0.266667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1091</th>\n",
       "      <td>1092</td>\n",
       "      <td>3.0</td>\n",
       "      <td>4.193181e+08</td>\n",
       "      <td>5.253909e+07</td>\n",
       "      <td>7.981070</td>\n",
       "      <td>76.421623</td>\n",
       "      <td>785.118110</td>\n",
       "      <td>45.940212</td>\n",
       "      <td>24.673881</td>\n",
       "      <td>36.173776</td>\n",
       "      <td>0.413158</td>\n",
       "      <td>0.100000</td>\n",
       "      <td>30.0</td>\n",
       "      <td>25.578391</td>\n",
       "      <td>59.756635</td>\n",
       "      <td>4801.857091</td>\n",
       "      <td>0.428043</td>\n",
       "      <td>0.133333</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1092</th>\n",
       "      <td>1093</td>\n",
       "      <td>8.0</td>\n",
       "      <td>7.643899e+07</td>\n",
       "      <td>1.179163e+08</td>\n",
       "      <td>0.648248</td>\n",
       "      <td>90.942550</td>\n",
       "      <td>659.757174</td>\n",
       "      <td>12.941820</td>\n",
       "      <td>11.019298</td>\n",
       "      <td>17.218019</td>\n",
       "      <td>0.117257</td>\n",
       "      <td>0.004425</td>\n",
       "      <td>10.0</td>\n",
       "      <td>12.174938</td>\n",
       "      <td>13.676611</td>\n",
       "      <td>523.112526</td>\n",
       "      <td>0.890201</td>\n",
       "      <td>0.200000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1093</th>\n",
       "      <td>1094</td>\n",
       "      <td>2.0</td>\n",
       "      <td>6.772962e+08</td>\n",
       "      <td>3.406916e+07</td>\n",
       "      <td>19.880038</td>\n",
       "      <td>76.318969</td>\n",
       "      <td>786.174142</td>\n",
       "      <td>48.865615</td>\n",
       "      <td>20.614626</td>\n",
       "      <td>29.531532</td>\n",
       "      <td>0.326260</td>\n",
       "      <td>0.039788</td>\n",
       "      <td>30.0</td>\n",
       "      <td>20.881736</td>\n",
       "      <td>66.050257</td>\n",
       "      <td>4333.022962</td>\n",
       "      <td>0.316149</td>\n",
       "      <td>0.133333</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1094</th>\n",
       "      <td>1095</td>\n",
       "      <td>3.0</td>\n",
       "      <td>7.203550e+09</td>\n",
       "      <td>1.517587e+09</td>\n",
       "      <td>4.746712</td>\n",
       "      <td>54.413543</td>\n",
       "      <td>1102.666667</td>\n",
       "      <td>77.898669</td>\n",
       "      <td>49.370235</td>\n",
       "      <td>77.636506</td>\n",
       "      <td>0.786458</td>\n",
       "      <td>0.463542</td>\n",
       "      <td>51.0</td>\n",
       "      <td>54.896623</td>\n",
       "      <td>92.130498</td>\n",
       "      <td>15889.086308</td>\n",
       "      <td>0.595857</td>\n",
       "      <td>0.200000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1095</th>\n",
       "      <td>1096</td>\n",
       "      <td>3.0</td>\n",
       "      <td>3.054392e+08</td>\n",
       "      <td>2.385845e+08</td>\n",
       "      <td>1.280214</td>\n",
       "      <td>49.241504</td>\n",
       "      <td>1218.484305</td>\n",
       "      <td>143.989531</td>\n",
       "      <td>105.216279</td>\n",
       "      <td>169.182796</td>\n",
       "      <td>0.906863</td>\n",
       "      <td>0.750000</td>\n",
       "      <td>96.0</td>\n",
       "      <td>119.454763</td>\n",
       "      <td>166.710286</td>\n",
       "      <td>62562.737096</td>\n",
       "      <td>0.716541</td>\n",
       "      <td>0.200000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1096 rows × 18 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "        id  age_group            lf            hf  lf_hf_ratio        bpm  \\\n",
       "0        1        2.0  4.772601e+08  1.121196e+08     4.256706  69.982942   \n",
       "1        2        2.0  3.828486e+08  4.189216e+07     9.138907  65.715434   \n",
       "2        3        7.0  3.209086e+07  6.883203e+07     0.466220  92.792823   \n",
       "3        4        4.0  3.996977e+08  3.649814e+07    10.951182  62.728278   \n",
       "4        5        2.0  2.663444e+08  1.822726e+08     1.461242  65.202127   \n",
       "...    ...        ...           ...           ...          ...        ...   \n",
       "1091  1092        3.0  4.193181e+08  5.253909e+07     7.981070  76.421623   \n",
       "1092  1093        8.0  7.643899e+07  1.179163e+08     0.648248  90.942550   \n",
       "1093  1094        2.0  6.772962e+08  3.406916e+07    19.880038  76.318969   \n",
       "1094  1095        3.0  7.203550e+09  1.517587e+09     4.746712  54.413543   \n",
       "1095  1096        3.0  3.054392e+08  2.385845e+08     1.280214  49.241504   \n",
       "\n",
       "              ibi        sdnn        sdsd       rmssd     pnn20     pnn50  \\\n",
       "0      857.351779   56.187352    32.28238   55.780042  0.706522  0.331522   \n",
       "1      913.027523   73.718299   46.512425   78.898203  0.779141  0.503067   \n",
       "2      646.601732    8.369797    9.726426   12.848187  0.049892  0.006508   \n",
       "3      956.506410   54.304814   22.233558   36.980050  0.517685  0.131833   \n",
       "4      920.215385   79.770535   79.733137  117.900879  0.873457  0.629630   \n",
       "...           ...         ...         ...         ...       ...       ...   \n",
       "1091   785.118110   45.940212   24.673881   36.173776  0.413158  0.100000   \n",
       "1092   659.757174   12.941820   11.019298   17.218019  0.117257  0.004425   \n",
       "1093   786.174142   48.865615   20.614626   29.531532  0.326260  0.039788   \n",
       "1094  1102.666667   77.898669   49.370235   77.636506  0.786458  0.463542   \n",
       "1095  1218.484305  143.989531  105.216279  169.182796  0.906863  0.750000   \n",
       "\n",
       "      hr_mad         sd1         sd2             s   sd1/sd2  breathingrate  \n",
       "0       40.0   39.440929   67.507515   8364.676182  0.584245       0.166667  \n",
       "1       50.0   55.787767   87.910442  15407.398553  0.634598       0.133333  \n",
       "2       10.0    9.085028    7.580096    216.346967  1.198537       0.333333  \n",
       "3       30.0   26.147648   72.162114   5927.775575  0.362346       0.200000  \n",
       "4       50.0   83.368465   76.207123  19959.389060  1.093972       0.266667  \n",
       "...      ...         ...         ...           ...       ...            ...  \n",
       "1091    30.0   25.578391   59.756635   4801.857091  0.428043       0.133333  \n",
       "1092    10.0   12.174938   13.676611    523.112526  0.890201       0.200000  \n",
       "1093    30.0   20.881736   66.050257   4333.022962  0.316149       0.133333  \n",
       "1094    51.0   54.896623   92.130498  15889.086308  0.595857       0.200000  \n",
       "1095    96.0  119.454763  166.710286  62562.737096  0.716541       0.200000  \n",
       "\n",
       "[1096 rows x 18 columns]"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df1 = df_metadata.drop(columns=[\"error\"])\n",
    "df1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_copy = df1.dropna()\n",
    "df_copy\n",
    "df_copy.to_csv(metadata_path, index=False)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
